Ssh Keep SSH Connection Alive through a Firewall

From NovaOrdis Knowledge Base
Revision as of 21:55, 2 July 2017 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview


Not Tested Yet!

The article http://patrickmylund.com/blog/how-to-keep-alive-ssh-sessions/ contains instructions for putty and cygwin ssh (client and server side). Essentially

sshd server wide:

Edit /etc/ssh/ssh_config and add:

Host *
   ServerAliveInterval 300
   ServerAliveCountMax 2

client:

Edit (create if it does not exist) ~/.ssh/config and add:

ServerAliveInterval 300
ServerAliveCountMax 2