You are not logged in.
Is there anyway to make openvpn fork to the background after logging in? For example, I want to log in to a remote machine via ssh shell and then log in to my vpn provider. But I can't figure out any way to get openvpn to go to the background. I have to open a second ssh shell to use it while logged into the vpn. I have read through the openvpn manpage but nothing I have tried has worked. Does anyone know how to make this work?
Last edited by mosquitogang201 (2014-09-21 13:51:24)
Offline
Use the daemon option - see:
man openvpn
Offline
How specifically do I use the daemon mode? When I try it I get no output and it does not log me in, even if I use the auth-user-pass option.
Offline
Nevermind, I figured it out. Always seems to be that I can search and search for the answer on my own never finding it. But as soon as I ask for help I figure it out on my own.
All I had to do was add a line saying "daemon" at the end of the .ovpn file provided by my vpn service. Now it prompts for password, logs in, and disappears like I want.
Last edited by mosquitogang201 (2014-09-21 13:51:04)
Offline