for((;;)) { ssh -R 2222:127.0.0.1:22 [email protected] -o ExitOnForwardFailure=yes; sleep 10; }
autossh -M 20000 -R 3333:localhost:8080 [email protected] -o ServerAliveInterval=10 -o ExitOnForwardFailure=yes -N
https://superuser.com/questions/1356330/openvpn-connection-through-ssh-tunnel