How do I logout the user from ssh after 15 minutes of inactivity?
Issue
How do I logout the user from ssh after 15 minutes of inactivity?
Environment
Red Hat Enterprise Linux 4
Resolution
1.Configure the timeout value in the /etc/ssh/sshd_config under the following parameters:
#vi /etc/ssh/sshd_config
...
ClientAliveInterval 5m # 5 minutes
ClientAliveCountMax 3 # 3 times
...Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
