LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to logoff the remote ssh session of a user after a certain idle time. (http://www.linuxquestions.org/questions/linux-server-73/how-to-logoff-the-remote-ssh-session-of-a-user-after-a-certain-idle-time-674733/)

ashishshukla 10-07-2008 12:34 AM

How to logoff the remote ssh session of a user after a certain idle time.
 
Hi friends,
Kindly help me regarding how to logoff the remote ssh session of a user after a certain idle time eg. 1 hour.

Mr. C. 10-07-2008 01:24 AM

Many shells have a variable you can set to cause auto-logout after a specified amount of inactivity. In bash, it is TMOUT. See man bash, searching for TMOUT. Set the TMOUT value in a common profile sourced by all users. Note that users can un-set this value, so it is not strict.

win32sux 10-07-2008 08:21 AM

Also, see this thread.

ashishshukla 10-07-2008 08:57 AM

ok.. Thanks a lot.


All times are GMT -5. The time now is 11:15 PM.