Celeb Glow
news | April 03, 2026

Passwordless Login to Ubunto 20.04 with FIDO2

So i've setup passwordless thru FIDO2 by adding

auth sufficient pam_u2f.so authfile=/home/me/.config/FIDO2/u2f_keys

having followed the instructions on the yubico page to generate the u2f_keys code

It's working great as an additional factor of authentication but I'd like it to be the only one (ie, we are going passwordless) or at least the primary form of authentication. Right now logging in and sudo'ing results in it asking for a password and then asking to tap the key.

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy