How to Save your VPN Username/Password for OpenVPN CLI

If your running OpenVPN from the command line its always handy if you could just save those details so you don't need to enter them every time you open a profile, keep in mind those credentials are saved in plain text - to achieve that just follow the simple steps below:

STEP 1) Create a txt file on a folder alongside your .ovpn or .conf files and name it something like 'pass.txt'

STEP 2) Put your TorGuard VPN username/password inside the file on two separate lines, for example:

username
password

Then save it.

STEP 3) Open up your .ovpn or .conf file in your favourite text editor and enter the following line:

auth-user-pass pass.txt

STEP 4) Save and connect to your OpenVPN profile as per the following guide.

If you have any problems whatsoever, please do not hesitate to contact us on our support desk.



Was this answer helpful? 30 Users Found This Useful (143 Votes)