cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1915
Views
1
Helpful
2
Replies

Duo_unix: SSH First Factor Password OR Pubkey

heckyeahcool
Level 1
Level 1

Hello
Is there a way to setup /etc/pam.d/sshd and /etc/ssh/sshd_config for publickey OR password? In other words, If a user prefers password first factor versus publickey first factor. I’d like the option of both.

1 Accepted Solution

Accepted Solutions

heckyeahcool
Level 1
Level 1

Solved.

I installed package “pam_2fa” and used the module “pam_ssh_user_auth.so” in /etc.pam.d/sshd

/etc/ssh/sshd_config
ExposeAuthenticationMethods pam-only

View solution in original post

2 Replies 2

heckyeahcool
Level 1
Level 1

Solved.

I installed package “pam_2fa” and used the module “pam_ssh_user_auth.so” in /etc.pam.d/sshd

/etc/ssh/sshd_config
ExposeAuthenticationMethods pam-only

Thanks for sharing your solution!

Duo, not DUO.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links