I've installed OpenVPN Access Server AMI in Amazon Cloud ( as per instructions http://openvpn.net/index.php/access-ser ... r-ami.html) and have successfully established a tunnel to my AWS account using OpenVPN Client.
so far so good.
What I wish to do now is used google authenticator with the OpenVPN Client when logging in.
I've update /etc/pam.d/openvpnas with the following:
Code: Select all
auth required pam_google_authenticator.so
When I attempt to re-login to OpenVPN Access Server using username / password+google OTP I get an "Incorrect login" message.
The following message is being logged in /etc/log/openvpnas.log
Oct 17 14:40:58 ip-10-78-0-247 openvpnas(pam_google_authenticator)[776]: Invalid verification code
Oct 17 14:40:58 ip-10-78-0-247 python[776]: pam_unix(openvpnas:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=USER1
Just wondering, am I using the correct format for logging in (i.e. username / password+google OTP )
Also, could anyone suggest some documentation / tutorials on using OpenVPN Access Server + google authenticator?
any help with solving this issue would be greatly appreciated,
Thanks - Tom