![]() ![]() If you want to start the connection in the background and also make it not terminate on exiting the terminal you should use this command instead: This will start the connection in the foreground. Sudo sed -i 's/auth-user-pass/auth-user-pass \/etc\/openvpn\/credentials/g' /etc/openvpn/ US-East.ovpn ovpn configuration file to use the credentials file: ![]() Replace username and password with your own credentials Sudo printf '%s\n' ' username' ' password' > /etc/openvpn/credentials If you want an automatic logon when you start the OpenVPN connection, you need to make the required changes to configuration files: disown -h makes it so the process isn’t killed when the terminal is shut down. bg resumes suspended process and sends it to the background. This invokes elevation and in the same time connects to the desired VPN destination, but it does so in the foreground. Sudo openvpn -config /etc/openvpn/ US-East.ovpn Since sudo elevation that requires you to input your credentials and putting the process into the background in the same line doesn't work, this is the recommended connection method if you want to manually type in your username and password: Next, you need to connect using the current configuration file, and you'll be asked for our credentials. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |