-   Linux - Server (
-   -   Enable connection timed out option in ssh (

msivadass 10-04-2008 12:35 PM

Enable connection timed out option in ssh
I want know how to enable the connection timed out options in ssh.
For example I want disconnect the users, whose are logged my sever by using ssh and the connections are idle more than 10 Minutes.

How we can do this? Pls any one help me.......?

robertjinx 10-04-2008 01:28 PM

Try ClientAliveCountMax and ClientAliveInterval. This settings you can check out in "man sshd_config" they are explain there and how to set them. I have set ClientAliveCountMax to 60, but you can do it as its best for you.


MensaWater 10-05-2008 02:44 PM

Or you could do it for all logins (not just ssh) by adding it to the system profile for the specific shell.

e.g. TMOUT=600 in /etc/bashrc for bash, or in /etc/profile for sh, and ksh. There is a similar timeout available for csh in /etc/login.

All times are GMT -5. The time now is 12:45 PM.