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 unlink a NIC from a esxi vSwitch

  List the vSwitches from ESXI using CLI:          esxcli network vswitch standard list  output example: vSwitch0    Name: vSwitch0    Class...