Penguin, small TECH.BARWICK.DE
Solutions to Problems

Recent posts





Powered By


Friday, August 21, 2009

Preventing SSH session timeouts

When accessing a remote server via SSH from a workstation connected to the internet via e.g. a NATed router setup, quite often the SSH will just hang after a short period of inactivity.

To prevent this, add the following lines to the SSH daemon config file (usually /etc/ssh/sshd_config):

KeepAlive yes
ClientAliveInterval 30

and restart the daemon (a reload may not be effective).

Also note that the SSH session used to make the change to the SSH daemon may not benefit from the modified configuration.

Posted at 12:21 AM |Comments (0)