Ssh Keep SSH Connection Alive through a Firewall

From NovaOrdis Knowledge Base
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