- sudo vi /etc/ssh/sshd_config
#ClientAliveInterval
#ClientAliveCountMax
- These config value will be used as timeout as below:
Timeout value = ClientAliveInterval * ClientAliveCountMax
So if you want the timeout interval as 3600second, use below details in the config:
ClientAliveInterval 1200
ClientAliveCountMax 3
- Once you update the config reload ssh using below command
sudo systemctl reload sshd
No comments:
Post a Comment