cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
828
Views
0
Helpful
1
Replies

Linux with private key only install

Shockey74
Level 1
Level 1

Hello,

I’m trying to install duo on a ubuntu server that is key based access only and i was able to install it however i’m not getting any prompts when i sign in, here is my /etc/pam.d/sshd config:

#@include common-auth
auth required pam_env.so
auth requisite pam_unix.so
auth [success=1 default=ignore] /lib64/security/pam_duo.so
auth requisite pam_deny.so
auth required pam_permit.so

thanks

1 Reply 1

  1. Did you make sure that pam_duo.conf was correctly configured?

  2. If it is correct then look at sshd_config. Some options that might be relevant to your situation are:
    UsePAM yes
    ChallengeResponseAuthentication yes
    AuthenticationMethods publickey,keyboard-interactive

    (The comma in AuthenticationMethods means both are required)

  3. If you have’t already found it, Duo has a pretty good guide to setting up some of the various flavors of Linux: Duo Unix - 2FA for SSH with PAM Support (pam_duo) | Duo Security

Quick Links