How to Set Idle Timeout in Linux SSH (Redhat, CentOS)

No GoodNeed ImprovementOKGoodExcellent (2 votes, average: 5 out of 5)
Loading ... Loading ...

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

Technorati :
Del.icio.us :

Popularity: 4%

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word