Difference between revisions of "Configuring idle timeout for openSSH"
From Notes_Wiki
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[OpenSSH server configuration]] > [[Configuring idle timeout for openSSH]] | |||
We can configure idle timeout for ssh so that if there is no activity for given period, the user is automatically logged out. To configure idle timeout edit file '<tt>/etc/ssh/sshd_config</tt>' | We can configure idle timeout for ssh so that if there is no activity for given period, the user is automatically logged out. To configure idle timeout edit file '<tt>/etc/ssh/sshd_config</tt>' | ||
Line 13: | Line 13: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[OpenSSH server configuration]] > [[Configuring idle timeout for openSSH]] |
Latest revision as of 09:48, 14 July 2022
Home > CentOS > CentOS 6.x > OpenSSH server configuration > Configuring idle timeout for openSSH
We can configure idle timeout for ssh so that if there is no activity for given period, the user is automatically logged out. To configure idle timeout edit file '/etc/ssh/sshd_config'
ClientAliveInterval 300 ClientAliveCountMax 3
Using above configuration would disconnect client if there is no activity for 15 minutes.
One can refer to 'man sshd_config' for more information on above parameters.
Technique has been learned from http://www.cyberciti.biz/faq/linux-unix-login-bash-shell-force-time-outs/
Home > CentOS > CentOS 6.x > OpenSSH server configuration > Configuring idle timeout for openSSH