Automatically re-connect a disconnected SSH session with AutoSSH
Automatically detect network failures and reconnect with AutoSSH. This tip lets you create a persistent connection between two servers, or between your desktop and server, and have it automatically re-connect.