Yubico Yubikey 5C NFC setup on Ubuntu 21.04
TL;DR Terminal commands for Yubikey 5C NFC setup on Ubuntu 21.04
sudo add-apt-repository ppa:yubico/stable && sudo apt-get update
sudo apt install yubikey-manager
sudo apt install yubikey-personalization-gui
sudo apt install libpam-yubico
sudo apt install libpam-u2f
Associating the U2F Key(s) With Your Account
Insert your U2F Key
mkdir -p ~/.config/Yubico
pamu2fcfg > ~/.config/Yubico/u2f_keys
Touch the metal contact to confirm the association.
Backup devices
Insert your backup U2F Key
pamu2fcfg -n >> ~/.config/Yubico/u2f_keys
Touch the metal contact to confirm the association.
Require for Sudo
In /etc/pam.d/sudo below “@include common-auth” add
auth required pam_u2f.so
Require for Login
In /etc/pam.d/gdm-password below @include common-auth
auth required pam_u2f.so
References:
[1]:Installing Yubico Software on Linux Visited: 10-12-2021
[2]:Ubuntu Linux Login Guide - U2F Visited: 10-12-2021