TorGuard Account Area

Add to Favourites    Print this Article

How to Save Username/Password for OpenVPN on Linux/PI

If your running OpenVPN from the command line its always handy if you could just save those details so you dont need to enter them everytime you open a profile, to acheive that just follow the simple steps below:

1) Create a txt file on a folder alongside your .ovpn files name it what ever you want ex. 'pass.txt'

2) Put your user/pass inside the file in two(2) lines, like:

username
password

3) Then save it.

4) Open up your .ovpn file in notepad and add:

auth-user-pass pass.txt

5) Save and connect to your openvpn profile.

Thats it!




Also Read