Keep your SSH Session Alive Jul 26, 2021 Add to the ~/.ssh/config of your local computer i.e. SSH client: ServerAliveInterval 15 ServerAliveCountMax 4 It sends a heartbeat signal to the SSH server every 15 seconds, and prevents an idle SSH session from freezing. (page source) Please enable JavaScript to view the comments powered by Disqus.