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