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. |
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.
|
Also, see this thread.
|
ok.. Thanks a lot.
|
All times are GMT -5. The time now is 07:09 AM. |