Set auto logout for SSH session.
If you want to set timeout for user sessions on your Linux machine, you can use the variable TMOUT. You can set a value for TMOUT in bash_profile or bashrc file.
# auto-logout if the shell session is idle for 1 hour
TMOUT=3600
No comments:
Post a Comment