« Back to Index

Avoid SSH connection timeout & freezing of terminal tab

View original Gist on GitHub

1. Avoid SSH connection timeout & freezing of terminal tab.md

<Enter>~.

The section “ESCAPE CHARACTERS” in the ssh man page explains the underlying details

2. Proper.md

Add the following to your ~/.ssh/config:

Host remotehost
  HostName remotehost.com
  ServerAliveInterval 240

ServerAliveInterval: Pings server every 4 minutes