EC2 timeout due to inactivity

0 votes

The bad thing is that SSH command is closed after some time due to my inactivity and I'm no longer able to see what's going on with my instances. How can I disable/increase timeout in Amazon Linux machines?

Mar 27 in AWS by Disha

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can set a keep alive option in your ~/.ssh/config file on your computer's home dir:

ServerAliveInterval 50

Amazon AWS usually drops your connection after only 60 seconds of inactivity, so this option will ping the server every 50 seconds and keep you connected indefinitely. This way even though there is no activity on your instance your instance won't close.

Hope this helps.

answered Mar 27 by Riya Kumaro

Related Questions In AWS

0 votes
1 answer

Adding Keypair to existing EC2 instance

No you can't. The reason is KeyPair ...READ MORE

answered Apr 8, 2018 in AWS by code_ninja
• 5,690 points
+2 votes
2 answers

Is it possible to ping AWS EC2 instance

Start by adding a new EC2 security group inbound ...READ MORE

answered Apr 9, 2018 in AWS by hemant
• 5,750 points
0 votes
3 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to install Python on my ec2 instance?

EC2 on linux machine currently supports python3.4 ...READ MORE

answered Mar 27 in AWS by Ritesh

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.