Gangmax Blog

Keep SSH session alive

Sometie the SSH server will terminate the connection if the client does not have any operations for a while. To keep the SSH session alive in this case, start the SSH session by using the following command with the “ServerAliveInterval” argument.

1
ssh -o ServerAliveInterval=20 <server>

From here and here.

Comments