Created
August 20, 2021 17:14
-
-
Save refabr1k/da0d80c65cff388f8e3925fa38b2cd9c to your computer and use it in GitHub Desktop.
setting up yubikey u2f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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