Using Your U2F YubiKey with Linux


Note: These steps are only necessary if your udev version is lower than 244. If you do not known your udev version, you can check by running sudo udevadm --version in Terminal.

 

If your udev version is lower than 244, to set up your Linux system for U2F:

 

  1. Verify that libu2f-udev is installed on your system.
    • On Debian and its derivatives (Ubuntu, Linux Mint, etc.), check whether libu2f-udev is installed by running dpkg -s libu2f-udev. Install (if not already installed) using sudo apt install libu2f-udev.
  2. If you have a YubiKey NEO or YubiKey NEO-n ensure you have unlocked the U2F mode by following the instructions in the Enabling or Disabling Interfaces article.
  3. Go to https://github.com/Yubico/libfido2/blob/main/udev/70-u2f.rules and download or create a copy of the file named 70-u2f.rules into the Linux directory: /etc/udev/rules.d/. If this file is already there, ensure that the content looks like the one provided on github.com/Yubico (link above). 
  4. Save your file, and then reboot your system.
  5. For services accessed via a web browser, ensure that you are running Google Chrome version 38 or later. Starting with Chrome version 39, you will be able to use the YubiKey NEO or YubiKey NEO-n in U2F+HID mode.