Tag: ssh
-
SSH connection alive and prevent it from timing out (heartbeat)
To keep an SSH connection alive and prevent it from timing out, you can use the ServerAliveInterval option in your SSH client configuration or command line. This option sets the interval at which the client sends keepalive messages to the server. Additionally, the ServerAliveCountMax option controls how many unanswered keepalive messages trigger a connection termination. To set the heartbeat interval in…