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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s