I'm an italian agile software developer, living in Trento (IT)     More about me

Keep SSH connection alive

Let’s get straight to the point.

1) Open /etc/ssh/ssh_config with nano, vi, or whatever editor you prefer.

2) Uncomment or add the line ConnectTimeout 0 and ServerAliveInterval 30

Boom.