Software >> OS >> Unix >> SSH >> Openssh >> How to avoid ssh session timeout and ensure that client keep alive setting can work with the sshd server

 

On the SSH server side check for the following settings

ClientAliveInterval 300
ClientAliveCountMax 2

 

ClientAliveInterval is the time duration that the server will wait for idle ssh connection to send a null packet to the client.  If there is no response after "ClientAliveCountMax" tries, it will kill the connection