New answers tagged init.d
Finally got this working. I had to add the -N argument to the ssh command, and made it run @reboot with crontab like Jacob Evans suggested. Even now that it's working, the login doesn't show in "last" on the receiving end of the ssh tunnel. I had this exact same script without the -N argument working on an older install, and with that setup I could use ...
Easy Answer, call it in /etc/rc.local before exit 0 or crontab -e @reboot script Also try a keepalive script like this: #!/bin/bash nc -z -w5 IP PORT if [ $? -eq 1 ]; then screen -dmS SSHTunnel autosshcommand else exit 0; fi
Top 50 recent answers are included