LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ssh timeout (https://www.linuxquestions.org/questions/linux-general-1/ssh-timeout-63124/)

blackmercury 06-01-2003 09:25 PM

ssh timeout
 
I am wanting to close a ssh client terminal after 5 minutes of inactivity. how would i go about doing so?

0x4B 06-02-2003 05:32 PM

if you are closing it from the server side, then you need to modify the sshd_config and set the ClientAliveInterval = 250 and the ClientAliveCountMax = 2
there are other combinations, but the interval specifies the number of seconds between checks, and the count max is the number of intervals over which a client can be innactive
I can't think of a quick way to do it if you're the client


All times are GMT -5. The time now is 01:30 PM.