sudo ykpersonalize -m86
(Use -m85
to disable OTP mode for nanos)
ACTION!="add|change", GOTO="yubico_end" # Udev rules for letting the console user access the Yubikey USB # device node, needed for challenge/response to work correctly. # Yubico Yubikey 4 (0407=nano) ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0407", \ ENV{ID_SECURITY_TOKEN}="1" LABEL="yubico_end" ACTION==”remove”, ENV{ID_VENDOR_ID}=”1050″, ENV{SUBSYSTEM}==”usb”, RUN+=”/usr/bin/pkill scdaemon”
pscs-lite
package; equo install pcsc-lite systemctl enable --now pcscd.service
Notes:
gpg –card-status
PIN retry counter
might look like 3 0 3
. They can be reset using the instructions here https://developers.yubico.com/ykneo-openpgp/ResetApplet.html (wipes any PGP keys on the yubikey, but doesn't seem to harm U2F tokens).if [ -x /usr/bin/gpg-agent ]; then eval "$(/usr/bin/gpg-agent --daemon --enable-ssh-support --write-env-file ~/.gpg-agent-info)" fi
~/.ssh/authorized_keys
(or LDAP) using: gpgkey2ssh <authentication subkey id>