03-23-2018 12:56 PM
I am trying setup DuoUnix for ssh with publickey, password and keyboard-interactive (duo push) all three.
I would be ok with only password and keyboard-interactive (duo push).
I followed this guide: https://duo.com/docs/duounix
Everything works but I am getting two push notifications. Should I only be getting one?
Info for publickey, password and keyboard-interactive:
@include common-auth
auth [success=1 default=ignore] /lib64/security/pam_duo.so
auth requisite pam_deny.so
auth required pam_permit.so
auth [success=1 default=ignore] pam_unix.so nullok_secure
auth requisite pam_unix.so nullok_secure
auth [success=1 default=ignore] /lib64/security/pam_duo.so
auth requisite pam_deny.so
PubkeyAuthentication yes
ChallengeResponseAuthentication yes
UseDNS no
AuthenticationMethods publickey,keyboard-interactive
UsePAM yes
Info for password and keyboard-interactive:
Info for password and keyboard-interactive:
@include common-auth
auth [success=1 default=ignore] /lib64/security/pam_duo.so
auth requisite pam_deny.so
auth required pam_permit.so
auth [success=1 default=ignore] pam_unix.so nullok_secure
auth requisite pam_unix.so nullok_secure
auth [success=1 default=ignore] /lib64/security/pam_duo.so
auth requisite pam_deny.so
PubkeyAuthentication yes
ChallengeResponseAuthentication yes
UseDNS no
AuthenticationMethods keyboard-interactive
UsePAM yes
For both the publickey,password,keyboard-interactive and password,keyboard-interactive I get the followed logs (I have to accept two duo push notifications):
Mar 23 14:54:12 ubuntu sshd[3392]: Successful Duo login for ‘ubuntu’ from 10.1.3.6
Mar 23 14:54:17 ubuntu sshd[3392]: Successful Duo login for ‘ubuntu’ from 10.1.3.6
Mar 23 14:54:17 ubuntu sshd[3390]: Accepted keyboard-interactive/pam for ubuntu from 10.1.3.6 port 49862 ssh2
Mar 23 14:54:17 ubuntu sshd[3390]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Mar 23 14:54:17 ubuntu systemd-logind[839]: New session 36 of user ubuntu.
01-09-2020 08:55 AM
Don’t you need to comment out the @include common-auth
in sshd
? The docs for Ubuntu show that…I think you are winding up calling pam_duo.so
twice.
#@include common-auth
auth [success=1 default=ignore] pam_duo.so
auth requisite pam_deny.so
auth required pam_permit.so
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide