Prevent SSH connections from timing out so often

The default null  packet used by an SSH client to keep the connection alive is usually sent every 5 minutes. If the SSH sessions are timing out frequently, it might help to send those packets faster.

Add these lines to your SSH client configuration and profit:

Host *
    ServerAliveInterval 60
    ServerAliveCountMax 2

 

Leave a Reply

Your email address will not be published.