username and password into OVPN file

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
tintern64
OpenVpn Newbie
Posts: 3
Joined: Sat Nov 27, 2021 6:32 pm

username and password into OVPN file

Post by tintern64 » Sat Nov 27, 2021 7:52 pm

Hi Everyone,

I have an app on an Amazon Firestick and I am trying to configure the VPN side of it.
I have uploaded the OVPN file and it asks me for username and password.
I tried adding in the line "auth-user-pass login.txt" and uploading the .txt file but still asks for username and password.

Can I put the username and password in the .ovpn file?

Thanks
G.

User avatar
Pippin
Forum Team
Posts: 1200
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: username and password into OVPN file

Post by Pippin » Sat Nov 27, 2021 7:56 pm

No.

Try:

Code: Select all

auth-user-pass /path/to/login.txt
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

tintern64
OpenVpn Newbie
Posts: 3
Joined: Sat Nov 27, 2021 6:32 pm

Re: username and password into OVPN file

Post by tintern64 » Sat Nov 27, 2021 8:02 pm

will try and confirm if working..thanks

tintern64
OpenVpn Newbie
Posts: 3
Joined: Sat Nov 27, 2021 6:32 pm

Re: username and password into OVPN file

Post by tintern64 » Sat Nov 27, 2021 8:30 pm

Afraid that didn't work. Doesn't seem to be able to read the .txt file

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: username and password into OVPN file

Post by openvpn_inc » Tue Nov 30, 2021 11:15 pm

tintern64 wrote:
Sat Nov 27, 2021 8:30 pm
Afraid that didn't work. Doesn't seem to be able to read the .txt file
Why not? What was the error? The answer was correct from the openvpn point of view, but there could be lots of causes of "unable to read a file" outside of openvpn.

Regards, rob0
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

kablammy
OpenVpn Newbie
Posts: 1
Joined: Tue Jul 19, 2022 4:20 pm

Re: username and password into OVPN file

Post by kablammy » Tue Jul 19, 2022 4:22 pm

Instead of :
/path/to/login.txt
try :
//path//to//login.txt

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: username and password into OVPN file

Post by TinCanTech » Tue Jul 19, 2022 5:39 pm

kablammy wrote:
Tue Jul 19, 2022 4:22 pm
try :
//path//to//login.txt
Why ?

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: username and password into OVPN file

Post by openvpn_inc » Tue Jul 19, 2022 6:14 pm

Hi kab,

The doubled path separator "//" in Unix paths does nothing. You're probably thinking of Windows paths, where the backslant "\" is also the escape character, so "\\" is necessary.

regards, rob0
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply