Skip to content

Instantly share code, notes, and snippets.

@refabr1k
Created August 20, 2021 17:14
Show Gist options
  • Save refabr1k/da0d80c65cff388f8e3925fa38b2cd9c to your computer and use it in GitHub Desktop.
Save refabr1k/da0d80c65cff388f8e3925fa38b2cd9c to your computer and use it in GitHub Desktop.
setting up yubikey u2f
# note: leave a seperate sudo terminal running and test if works eg. with sudo first
sudo apt update
sudo apt install libpam-u2f pamu2fcfg
mkdir -p ~/.config/Yubico
pamu2fcfg > ~/.config/Yubico/u2f_keys
# touch yubikey when flashing to associate
# edit /etc/pam.d/sud
# add after @include common-auth
auth required pam_u2f.so
# using seperate terminal try sudo and you should only be prompted for u2f
# edit /etc/pam.d/login
# depends on display manager eg. ubuntu gdm or kali's lightdm
# /etc/pam.d/gdm-password
# /etc/pam.d/lightdm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment