pam-u2f

PAM module for U2F/FIDO2 authenticator support

brewmacoslinux
Try with needOr install directly
Source

About

Provides an easy way to use U2F-compliant authenticators with PAM

Commands

pam_u2f

Examples

Configure PAM to require U2F authentication for sudo$ echo 'auth required pam_u2f.so' | sudo tee -a /etc/pam.d/sudo
Register a U2F key for user authentication$ pamu2fcfg -u $(whoami) > ~/.config/Yubico/u2f_keys
Add U2F as optional second factor to login$ echo 'auth optional pam_u2f.so' | sudo tee -a /etc/pam.d/login