Monthly Archives: September 2010

Keeping ssh connection alive

Hotel’s firewall apparently drops inactive connections after a while, and I get that “connection reset by peer” message, and my ssh-connection is lost. An easy fix is:

ssh -o "ServerAliveInterval 300" user@host.name

This makes some traffic every 300 seconds even if I’m not doing much on the computer, and keeps the connection alive.