Automatically restart SSH sessions and tunnels on connection loss
Automatically restart SSH sessions and tunnels
autossh$ autossh -M 20000 user@remote.example.com$ autossh -M 20000 -N -L 8080:localhost:80 user@remote.example.com$ autossh -M 20000 -N -R 2222:localhost:22 user@remote.example.com