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"

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


Leave a Reply

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

You are commenting using your 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 )

Connecting to %s