![]() |
| Automatically Log Out SSH Session |
Sometime we connect to our server, and we forget it or fall asleep. to keep our servers controlled by the people around us, then we automatically log out the settings on our server ssh.
automatically log out at a certain time. Her manner was simple and very useful for a sysadmin.
Open and edit the ssh configuration.
nano /etc/ssh/sshd_config
add new line and paste this :
ClientAliveInterval 3600
ClientAliveCountMax 0
Save and restart ssh server.
/etc/init.d/ssh restart
thankz..

No comments:
Post a Comment