Monthly Archives: March 2009

How to keep a persistent ssh connection

Create a init script like this # cat /etc/init.d/autossh #!/bin/sh autossh -M8122 -R8022:localhost:22 -l username -fN remote.example.net And link it your rc script That is all

Posted in ssh | Tagged | Leave a comment