How to save password for automatic login – OpenVPN (Windows / Linux)
Save Password in OpenVPN for Automatic Login
By default, OpenVPN does not save the username and password which requires you to input them in each time you connect to the server. This is good from a security perspective, but there are sometimes where it is required to have this information saved to permit automatic logins to OpenVPN.
If you need to save the username and password to a VPN connection, follow the steps below.
Navigate to your config folder for OpenVPN. Some common paths for this folder are: Windows – C:\Program Files (x86)\OpenVPN\configLinux – /etc/openvpn
If you have a subfolder within the config folder where your configuration files/certs reside, make sure to dive down to that folder.
Create a new text file in this folder. We’ll name ours “auth.txt”. The contents of this text file should simply be two lines. The first line should be your username, and the second should be your password. Save this file.
Now open your OpenVPN config file, which should be in the same folder, in a text editor (if on Windows use Notepad++ instead of Notepad). These files typically end in a .ovpn extension. Find the line that says “auth-user-pass” and change it to “auth-user-pass auth.txt”, where “auth.txt” is the name of the file containing your username and password.
Save this file.
Try to connect to OpenVPN. You may need to restart the OpenVPN client and you should now connect without a username and password prompt!
|Server name||Use for Examples|
|usa.vanishedvpn.com||Unblocking US content (Netflix, Hulu), ESPN+|
|usatv.vanishedvpn.com||USA TV channels (NBC, CBS, Starz, Vudu, Sling TV etc)|
|uk.vanishedvpn.com||Unblocking UK content (Netflix, BBC iPlayer, ITV.com, NOW TV, Sky GO, Channel 4 etc)|
|aus.vanishedvpn.com||Secure browsing, Access to Aus channels while travelling outside Australia (Foxtel Go, Plus 7, 9 Now, Ten Play). Access to Aus to avoid throttling by your ISP|
|p2p.vanishedvpn.com||P2P & Bit Torrent – These servers are based in a location where the laws on Bit Torrent are liberal. Bit Torrent is disabled on all other servers.|
|india.vanishedvpn.com||hotstar.com, sonyliv.com , News, TV, Sports, Video Streaming|
|spain.vanishedvpn.com||News, TV, Sports, Video Streaming|
|france.vanishedvpn.com||News, TV, Sports, Video Streaming|
|russia.vanishedvpn.com||https://matchtv.ru/ , News, TV, Sports, Video Streaming|
|swiss.vanishedvpn.com||www.srf.ch/tv , News, TV, Sports, Video Streaming|
|safrica.vanishedvpn.com||SuperSport, News, TV, Video Streaming|
|holland.vanishedvpn.com||DutchTV, Sports, Video Streaming|
|taiwan.vanishedvpn.com||Taiwan News, TV, Sports, Video Streaming|
|turkey.vanishedvpn.com||Turkish News, TV, Sports, Video Streaming|
|germany.vanishedvpn.com||DAZN, https://www.zdf.de/, News, TV, Sports, Video Streaming|
|italy.vanishedvpn.com||Italian News, TV, Sports, Video Streaming|
New Zealand Netflix.com