Dammit Server, y u kick me off again?!?

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.



I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....