Tag Archives: enable-password-save

Openvpn save password without recompiling using bash

If you need a way to launch an openvpn client that uses auth-user-pass without having to recompile openvpn with –enable-password-save you could use a simple shell script.

#!/usr/bin/expect
spawn openvpn –config /etc/openvpn/configforclient.conf
expect “*Username:*”
send “userhere\r”
expect “*Password:*”
send “passhere\r”
interact

Just replace userhere and passhere with your vpn username and password. Saving your login credentials in plain text may be a security [...]

Posted in Computer software | Also tagged , , , | Leave a comment