Forgot openvpn admin's password

Bhesh Raj Sejawal picture Bhesh Raj Sejawal · Feb 9, 2016 · Viewed 15.2k times · Source

I had installed open-vpn on AWS ec2 instance but now I forgot the admin password and I can not access to the openvpn web-ui. Is there any way to reset admin's password?

Answer

Bhesh Raj Sejawal picture Bhesh Raj Sejawal · Feb 10, 2016

Solved: connect to the openvpn server appliance using ssh as

ssh -i "vpn.pem" openvpnas@public-ip
sudo su -
passwd openvpn

You just need to reset openvpn user's password on server and try login on web-ui login page