Categories
Linux/Unix

SSH connection keepalive

Add these lines into you ~/.ssh/config file. It can help you send keepalive message 6 times every 30 seconds.

Host *
  ServerAliveInterval 30
  ServerAliveCountMax 6