Hi there,
I have set up Duo on a client server that we manage. and retain root to. Our requirements are:
- No change to our users on the server (i.e no 2FA)
- 2FA only present for users who are in the duo2fa Unix group, and only after key and password auth has passed
- Duo account remains in client’s name (We do not want to manage SSH users via a control panel)
I’ve tested many scenarios and this mostly works for our users, but the client’s user keeps asking for 2FA even after I provide all the correct details.
My configs as follows:
/etc/pam.d/sshd:
@include common-auth
auth required pam_permit_if.so user ingroup duo2fa
auth required /lib64/security/pam_duo.so
What else is required to get the client’s user, which exists in the duo2fa group, to require an ssh key and password for auth, and then succeed once the 2FA succeeded?
Any help or pointing in the right direction would be appreciated.
Thanks!