-3

I was trying to automate the launch of OpenVPN, by placing this code into a .sh file and then launching it.

openvpn --config vpnbook-us1-tcp443.ovpn

After executing this command, I am brought to a text prompt where I am supposed to input the username (vpnbook) and then the password. Is there a command that will allow me to automatically input these two sections of text so that I don't have to type them in every time?

3

Create a file to hold your auth details, with the first line being that username and the second being your password.

You can then modify your .ovpn file, adding a line: auth-user-pass THATFILE

That should automatically handle those details for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.