Archive for January, 2010

Auto close a SSH session after a period of idle activities

Tuesday, January 26th, 2010

to automatically close a SSH connection on the server, we can change the following ssh configuration.

Edit /etc/ssh/sshd_config

Change
ClientAliveInterval 300
ClientAliveCountMax 3

service sshd restart