LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Enable connection timed out option in ssh (http://www.linuxquestions.org/questions/linux-server-73/enable-connection-timed-out-option-in-ssh-674216/)

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.

Cheers!

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 06:31 PM.