How to Set Idle Timeout in Linux SSH (Redhat, CentOS)
1, Edit sshd_config
vi /etc/ssh/sshd_config
2, Edit ClientAliveInterval and ClientAliveCountMax
ClientAliveInterval 600
ClientAliveCountMax 3
this will give you 30 minute idle time (3 x 600 seconds) and you don’t need to reconnect your application (SCP, Putty) every few minutes.
3, Restart sshd:
/etc/init.d/sshd restart
Popularity: 4%


















































