Page 1 of 1

username and password into OVPN file

Posted: Sat Nov 27, 2021 7:52 pm
by tintern64
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.

Re: username and password into OVPN file

Posted: Sat Nov 27, 2021 7:56 pm
by Pippin
No.

Try:

Code: Select all

auth-user-pass /path/to/login.txt

Re: username and password into OVPN file

Posted: Sat Nov 27, 2021 8:02 pm
by tintern64
will try and confirm if working..thanks

Re: username and password into OVPN file

Posted: Sat Nov 27, 2021 8:30 pm
by tintern64
Afraid that didn't work. Doesn't seem to be able to read the .txt file

Re: username and password into OVPN file

Posted: Tue Nov 30, 2021 11:15 pm
by openvpn_inc
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

Re: username and password into OVPN file

Posted: Tue Jul 19, 2022 4:22 pm
by kablammy
Instead of :
/path/to/login.txt
try :
//path//to//login.txt

Re: username and password into OVPN file

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

Re: username and password into OVPN file

Posted: Tue Jul 19, 2022 6:14 pm
by openvpn_inc
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