Increase SSH Connection Timeout in Linux

  •  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

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...