Access denied after installing Duo on Ubuntu server 18.04

After following the Duo documentation to install Duo 2fa on my server running Ubuntu server 18, I am getting access denied when trying to login via ssh. The ssh session prompts for username and password and then immediately states access denied after installing Duo. Where have I gone wrong?

Hey Dustin! If you used our Duo Unix protection using PAM, you might need to provide the absolute path for the pam_duo.so shared object inside the PAM stack you configured. Above the examples in the documentation we mention that the location of the pam_duo.so might be in /lib64/security/ on some OSes or achitectures.

If your line looks like this:
auth [success=1 default=ignore] pam_duo.so

Try editing it to this:
auth [success=1 default=ignore] /lib64/security/pam_duo.so

1 Like