- Yubico authenticator;
- YubiKey Manager;
- Built-in repositories;
- Yubico PPA packages;
- Compilation from the source code.
Installing the Yubico Authenticator
There are several ways to install a Yubico authenticator:
- Choose the distribution that best suits your version of Linux from the page here.
- Download AppImage, on this site you will find instructions on how to use it. Before running the program, make sure you have the pcscd package installed. To check if it is installed, type the command in the terminal:
systemctl status pcscd
. And to check if it’s on:systemctl is-enabled pcscd
. To enable and run the package, type:sudo systemctl enable --now pcscd
. - Install the authenticator through the distribution’s repository if your Linux version allows it. Since the options may differ from OS to OS, you will need to refer to the documentation that came with the respective version to perform this step. Or you can try to find it on the Internet.
Installing the YubiKey Manager
You can download YubiKey Manager via AppImage at this link. Just like in the previous case, the AppImages program will work with the pcscd package installed.
You can also try to install the Manager through the repository by referring to the documentation of your distribution.
Install software using built-in repositories
If you have built-in distribution repositories, we recommend using them. The settings will depend on your OS. For example, for the Fedora version, to install the Yubico PAM module, you will need to enter a command: sudo dnf install pam_yubico
Using Yubico PPA packages
If your distribution repository does not contain Yubico packages, you can download Yubico PPA. To add a repository to your local directory, follow these steps:
- Open a terminal and run the command:
sudo add-apt-repository ppa:yubico/stable && sudo apt-get update
. - When the package is finished downloading, press Enter, to confirm that the PPA has been added to your server.
- If you see that sudo add-apt-repository ppa:yubico/stable cannot get the signing key, try adding it manually with the command:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 32CBA1A9
.
After successfully completing all the steps, you can install the latest version of the software using the command in the terminal: apt install
.
Below are common commands for installation (which may differ slightly depending on the OS).
Program | Сommand |
YubiKey Manager | sudo apt install yubikey-manager |
Yubico package | sudo apt install libpam-yubico |
U2F package | sudo apt install libpam-u2f |
Compiling using the source code
This method is designed for those with relevant development and programming experience. To install the Yubico software on Linux by compiling source code snippets, you will need the Yubico software source code, which can be found at GitHub. If you don’t have the relevant experience, we recommend using the other methods described above.
If you’re interested in setting up a YubiKey on Linux, please refer to our Knowledge Base for instructions.
Similar materials in the Knowledge Base
Yubico Authenticator – User Guide
This guide is designed to help you set up your YubiKeys on any services that offer two-factor authentication connections using authenticator programs that generate codes.
How to set up a YubiKey in Linux using call-response
YubiKey hardware security keys make your system more secure. And the procedure of logging into accounts is faster and more convenient. Follow the instructions below to easily add the required settings on your Linux system.Setting up the YubiKey in Linux is quite...
How to add a spare YubiKey security key and why to do it
How to add a spare YubiKey security key and why to do it How to add a spare YubiKey security key and why to do it YubiKey hardware security key very reliable – it is resistant to wear and tear and does not lose its properties when exposed to water. But it has a...