Is there any way to start autossh
on startup, so that it starts and sets up the ssh tunnel before a user has even logged in? I boot Ubuntu to terminal, and I'd like that the autossh
process starts automatically on startup so I can ssh in.
I've tried adding the command to /etc/rc.local
, as well as to create a /etc/init/*.conf
script. None of these seems to work.
@reboot autossh -D 9050 user@sshserver -fTNC
on crontab? – Pablo Bianchi Jul 29 '19 at 00:15