Yubikey + Elementary GNU/Linux

UPDATE: To make it work in Arch, use this content for /etc/udev/rules.d/70-u2f.rules instead

Today I was having issues login in for the first time in my Github account in my recently formatted laptop using Elementary. When trying out the Yubico test webpage, I got an error saying FIDO Client error: 1.

After some googling, I got to this thread in the Yubico forums, where a user stated that udev does not know the Yubikey device, hence, you have to explicitly create a rule to give all users access said device, by running the following:

$> sudo echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0113|0114|0115|0116|0120"' > /etc/udev/rules.d/70-u2f.rules

or

$> su root
$> echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0113|0114|0115|0116|0120"' > /etc/udev/rules.d/70-u2f.rules

After adding the rules, restarting the browser and reconnecting the Yubikey just to make sure, everything worked just fine and I was able to login into my Github account again :).

Author image
Santiago, Chile Website
Web developer for the last 4 or so years, Mauricio tries hard to stand out and go beyond his limits, which usually doesn't work very well, but when it does it feels awesome!