Page 3 of 3

Re: Saving Username/Password

Posted: Thu Jan 07, 2021 9:03 pm
by anatakwala
auth-usr-pass "./login.conf"

This did not help in connecting OpenVpn Connect 2.6.0.100 on a Windows 10 machine.

auth-user-pass "C:\\Users\\ab\\Downloads\\login.conf"

Any suggestions on how to fix it?

Re: Saving Username/Password

Posted: Tue Jun 28, 2022 1:15 am
by dukeofurl
I'm trying to figure this out now, June 27th 2022. I'm not having good luck.

On mine, the .exe is called OpenVPNConnect.exe and there is no config directory next to it. The exact path is "C:\Program Files\OpenVPN Connect"
is Connect something else, a completely different program?

Re: Saving Username/Password

Posted: Tue Jun 28, 2022 9:17 am
by TinCanTech
dukeofurl wrote:
Tue Jun 28, 2022 1:15 am
On mine, the .exe is called OpenVPNConnect.exe
OpenVPN-Connect-Windows is not the same as OpenVPN.

Re: Saving Username/Password

Posted: Wed Jun 29, 2022 4:35 am
by dukeofurl
Please, tell me what I must do then. Is there a special client I have to download? I just want a vpn to my isp that saves my username/pw. I have a ovpn file from my ISP.

Re: Saving Username/Password

Posted: Mon Jul 11, 2022 7:28 pm
by glestwid
Hi,

Is it possible to save user &pwd combination directly in the distributed .OVPN file? For example , my Keenetic router supports this tag in passed .OVPN files:

<auth-user-pass>
user
pwd
</auth-user-pass>

The target OpenVPN client is OpenVPN Connect 2.7.1.111, OS - Windows 10 x64 21H2

Re: Saving Username/Password

Posted: Tue Apr 18, 2023 11:45 am
by simon1974smith@gmail.com
Kyrax wrote:
Fri Nov 15, 2013 9:20 am
xauen wrote: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:

Code: Select all

username
password
3. Then save it.
4. open up your .ovpn file in notepad and add:

Code: Select all

auth-user-pass pass.txt
5. save and connect to your openvpn server.
Good morning,

i tried this but the password continue to be asked. it look like the second line isn't read. (the file pass.txt was created with notepad++)
No error messages appear in logs.

Version 2.3.2
OS: Win 7 64 bits

Thanks for your help
I got the same issue as I added a new line for auth-user-pass at the end of the .ovpn file. But there was a pre-existing auth-user-pass without any filename higher up in the .ovpn file, which cause the issue. Try add your password file with the full path to the pre-existing auth-user-pass line and leave it with that.

Re: Saving Username/Password

Posted: Tue Jan 16, 2024 7:43 am
by emoxam
Yep.
askpass tunnel.pass
and no login in tunnel.pass
only password.
thanks!

Re: Saving Username/Password

Posted: Wed May 08, 2024 8:09 am
by seyahdoo
Successfully saved the credentials with these settings:

changed this line

Code: Select all

auth-user-pass
to this

Code: Select all

auth-user-pass pass.txt
this line also works

Code: Select all

auth-user-pass "C:/Program Files/OpenVPN/config/pass.txt"
Created a new file named "pass.txt" on the same directory with ovpn file, Encoding is UTF-8, Line endings are LF.
You can set these properties using the bottol right bar on vscode.

pass.txt has three lines, first contains username, second line contains password, third line is empty.

OpenVpn works fine without packet loss in Pakistan

Posted: Wed May 08, 2024 7:45 pm
by Aleesha
Sorry Buddy I am posting my query in your reply it's really urgent to resolve this issue. I cannot find option for the new post.My openvpn works fine in night time Pakistan.I have a remote job in Bulgaria that's why using this vpn.Please help me how can I fix this issue. No one is helping me properly in company.