Wednesday, December 28, 2016

how to set the ssh timeout in linux


vim /etc/ssh/sshd_config


ClientAliveInterval 600    ---------------------change the value
ClientAliveCountMax 3

That will give you an timeout of 30 minutes (600 sec x 3)

after that restast sshd service and try

No comments:

Post a Comment