[TriLUG] SSH inactivity timeout

Alan Porter porter at trilug.org
Fri Jan 27 13:56:52 EST 2006


I am not sure how to tell SSH to limit the session,
but you can tell BASH to log you out after inactivity.

   export TMOUT=600

This works at the shell level so it does not matter
if it's SSH, telnet or console.

This handy little shell variable can also be used in
scripts if you want to ask for input, but then give
up if there is no input with XX seconds.


Alan






.





More information about the TriLUG mailing list