Keeping SSH Alive on OSX 10.7.5

Quick SSH tip. I recently upgraded to OSX 10.7.5 and promptly found SSH sessions dying early and often. After trying various things people suggested, I found some flags which fixed it and am using this alias for now:

function shell { ssh -o TCPKeepAlive=no -o ServerAliveInterval=15 $1; }

You can stick that in a config file, if you wish to make it default.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>