May 242013

or how to Keep SSH Connections Alive…

Login to your server and open the /etc/ssh/ssh_config file.

sudo vim /etc/ssh/ssh_config

and add the following line to the end of the file:

ServerAliveInterval 60

This sends a null packet to the server every 60 seconds during periods of inactivity to keep the SSH connection alive.


 Posted by at 8:05 am

Sorry, the comment form is closed at this time.