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
65 views

1 answer to this question.

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
• 6,220 points
52 views
+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
578 views
0 votes
3 answers
0 votes
1 answer
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
566 views