Linux with private key only install


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
auth requisite
auth [success=1 default=ignore] /lib64/security/
auth requisite
auth required


  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