Resources / Blogs
Increasing SSH Timeouts
Steps to increase ssh timeout on linux. It takes editing in the sshd configuration file and then a restart of SSH Demon after modification.

Here are the steps to increase ssh timeout at the server level on Linux OS:
These steps are performed on CentOS:
Modify the following directives by editing the sshd config file: /etc/ssh/sshd_config
TCPKeepAlive yes
ClientAliveInterval 30
ClientAliveCountMax 99999Restart SSH Demon after modifying the config file:
[root@mars ~]# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]Caution: only recommended in development environment.