Tag: keepalive

Keeping your SSH sessions alive

I recently noticed that ssh connections from my mac laptop to my server would time out and disconnect if I left the connection idle for a long period of time. This could turn out to be really annoying sometimes.

Add the following line to your ssh config file $HOME/.ssh/config:

ServerAliveInterval 180
ServerAliveCountMax 5

That will fix the time out problem …

Read the complete article »