./configure && make && make install |
/usr/local/bin/autossh -M 0 -vv -f -N -R 2266:127.0.0.1:8080 root@192.168.0.12 |
/usr/local/bin/autossh | the actual autossh binary |
-M | turns monitoring off and only restarts is ssh restarts or exits |
-vv | verbose |
-f | drop into background |
-N -R 2266:127.0.0.1:8080 root@192.168.0.12 | normal ssh options for forwarding local port 8080 to 192.168.0.12 port 2266 |