Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (19.1k points)

I am able to issue commands to my EC2 instances via SSH and these commands logs answers which I'm supposed to keep watching for a long time. 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?

The error looks like this:

Read from remote host ec2-50-17-48-222.compute-1.amazonaws.com: Connection reset by peer

1 Answer

0 votes
by (44.3k points)

Consider using screen or byobu and the drawback can seemingly go away. What's more, though the connection is lost, you'll be able to reconnect and restore access to the same terminal screen you had before, via screen -r or byobu -r.

byobu is an improvement for the screen, and contains an extraordinary set of choices, like an estimate of EC2 prices.

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories

...