Yubikey on Arch

06 Oct 2016 in TIL

Just a quick guide how to get a Yubikey working on Arch Linux.

Enable the udev rules to access the Yubikey as a user.

bash
echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="users", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0"' | sudo tee /etc/udev/rules.d/10-security-key.rules

Install the U2F module to provide U2F support in Chrome

bash
sudo pacman -S libu2f-host

Enable pcscd (the system smart card daemon)

bash
sudo systemctl enable pcscd.service

Install the personalization GUI

bash
yaourt -S yubikey-personalization-gui-git

Reboot so that the udev rules take effect and pcscd starts (you could use udevadm trigger and systemctl start pcscd.service here, but I like to reboot)

Run yubikey-personalization-gui and configure slot 1 as a OTP slot and slot two as a static password