Linux SSH prompting for Password twice

    Applies to:
  • Legacy SecureAuth IdP
Deployment model:
  • On Premises
  • Version Affected:  All


    After following our Linux PAM guide. Users report that SSH makes the type Username | Password | 2nd Factor | Password



     /etc/pam.d/SSHD configuration



    1. Edit /etc/pam.d/SSHD

    2.  Set it to

    or Alternatively, you can comment out the auth include password-auth as this is the 2nd module that is asking for a password. 

    3. With either option you get prompted as Username | Password | 2nd Factor


    Special Considerations   

    This was tested on CentOS 7 and 8



    SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.

    Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.

    0 out of 0 found this helpful



    Please sign in to leave a comment.