I have a working script, which allows me to do a vpn connection. It looks like this:
openvpn --config VPNBook.com-OpenVPN-Euro1/vpnbook-euro1-tcp443.ovpn
All is good, but I have to input the publicly available vpn and password every time I run this script. (Don't worry, I'm not going to do banking or anything serious over a free VPN, this is more for learning).
This is the username and the password available publicly on their website:
Username: vpnbookPassword: he2qv5h
After firing up, the script prompts me for username and password which now I need to copy and paste.
Tue Aug 15 11:54:51 2017 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.08Enter Auth Username: vpnbookEnter Auth Password:
Is there a way of doing it so the script inputs the values on its own?
I tried echoing it, but it isn't that easy.
Or do I have to edit the command itself, somewhere in the files? If yes, can someone point me in the right direction for doing it?