Google Authenticator
Posted: Mon Jan 07, 2013 5:22 pm
I have installed openvpn successfully on an AWS image. I have been able to setup google authenticator for ssh login into the server so I know google authenticator works ok.
I went to the as.conf file in /usr/local/openvpn_as/etc/as.conf and added "plugin /usr/lib/openvpn/openvpn-auth-pam.so openvpn"
I then confirmed the openvpn-auth-pam.so file exists:
-rwxr-xr-x 1 root root 15802 Jan 7 14:57 /usr/lib/openvpn/openvpn-auth-pam.so
I also create the /etc/pam.d/openvpn file
root@qavpn:/usr/local/openvpn_as# cat /etc/pam.d/openvpn
auth required pam_google_authenticator.so
I restarted the vpn client but yet I can still login to the VPN without google authenticator. What am I missing?
Thanks,
Olivier
I went to the as.conf file in /usr/local/openvpn_as/etc/as.conf and added "plugin /usr/lib/openvpn/openvpn-auth-pam.so openvpn"
I then confirmed the openvpn-auth-pam.so file exists:
-rwxr-xr-x 1 root root 15802 Jan 7 14:57 /usr/lib/openvpn/openvpn-auth-pam.so
I also create the /etc/pam.d/openvpn file
root@qavpn:/usr/local/openvpn_as# cat /etc/pam.d/openvpn
auth required pam_google_authenticator.so
I restarted the vpn client but yet I can still login to the VPN without google authenticator. What am I missing?
Thanks,
Olivier