x

Yubico Yubikey 5C NFC setup on Ubuntu 21.04

11 Dec 2021 / Oscar F
Yubico logo and a Yubikey 5C NFC

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
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

Twitter logo black Facebook “f” logo black Reddit logo black LinkedIn logo black Email icon black