3
1
I am trying to setup autossh to run a tunnel to my VPN server. If I use autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 10000:localhost:22 console@<myvpnip>
, it seems to work well and I can use the tunnel.
However, if I add a -f
flag to run in the background, autossh -f -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 10000:localhost:22 console@<myvpnip>
, I get Connection refused
when trying to use the tunnel.
What is going on here? Is there a way to log any errors while running it in the background?
I already had the password turned off and the auth keys turned on, but thats a good thought. The syslog is a good resource though, thanks! – ericksonla – 2017-12-19T23:35:17.847