ssh keepalive

From thelinuxwiki
Revision as of 03:55, 1 June 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


server side

enable in sshd_config

TCPKeepAlive yes


client side

create config file (if it doesn't already exist) in the ssh user ~/.ssh/ directory with the following lines

Host *
   ServerAliveInterval 180 
   ServerAliveCountMax 2