

Many websites can use U2F tokens for 2FA see here for a list. See the documentation and man ssh-keygen for more details. The only additional stipulation is that the FIDO token that the key belongs to must be attached when the key is used. After generation, this key may be used like any other supported key in OpenSSH and may be listed in authorized_keys, added to ssh-agent(1), etc. The private key file should be useless to an attacker who does not have access to the physical token.

To allow password-less login using just the U2F key, use lines like:

Using the latter method, add lines like the following to files such as /etc/pam.d/xscreensaver and /etc/pam.d/lightdm PAM can be configured via either /etc/pam.conf or (more commonly) individual appropriately named files under /etc/pam.d/. WARNING: it is possible to lock yourself out of your system while changing PAM configuration. Install the required libraries: sudo apt-get install pamu2fcfg libpam-u2fĬreate authorization maps ( full documentation): PAM integration is accomplished via Yubico's pam-u2f module.Ĭheck for the USB dongle: lsusb | grep U2F Many hardware tokens offer a variety of security protocols in addition to U2F (e.g., OATH-TOTP, OATH-HOTP, PIV, OpenPGP, OTP) these are often more expensive than U2F-only tokens. Any U2F token should work under Debian, with no drivers or low level configuration required. U2F tokens are available in a variety of form factors, including various versions of USB, Bluetooth, and NFC. U2F is an open standard for hardware two-factor / multi-factor authentication (2FA).
