SSH Keep-Alive for Mac OS X
May 7th, 2009
I discovered a while back that my SSH sessions weren’t staying active despite having the appropriate settings in /etc/ssh/ssh_config.
The other day, I found an article on Google with another way to get keep-alives working – luckily this seems to have worked.
You need to edit ~/.ssh/config (create it if it doesn’t exist), and add the following lines:
ServerAliveInterval 300 ServerAliveCountMax 3
I quit Terminal.app just for completeness and it now keeps my sessions alive
