SSH Keep-Alive
Some firewall / router configurations doesn't treat SSH (TCP 22) as a high priority service. Some also keep the service low in the IP connection tracking table. This, among other possible reasons, break our SSH connections making the administrative work to be very annoying. Here is a tip for configuring SSH Keep-alives properly in OpenSSH.
Point your editor to:
# vi /etc/ssh/sshd_config
Make sure of enabling the following option
TCPKeepAlive yes
Set the following variable to whatever you want (keep-alive interval in seconds).
ClientAliveInterval 1
Note: Setting it to 1, might look a little bit agressive, but it works just flawlessly.
Posted by Administrator on Wed, 2 Nov 2011