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

Selenium firefox driver session fails with : Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,

 Error: With Firefox driver /gecko driver Could not start a new session. Response code 500. Message: Expected browser binary location, but u...