How To Install yubikey-val on Ubuntu 18.04
Introduction
In this tutorial we learn how to install yubikey-val
on Ubuntu 18.04.
What is yubikey-val
yubikey-val is:
YubiKeys are USB tokens that act like keyboards and generate one-time passwords. This package contains a server written in PHP for use with Apache to validate YubiKey OTPs. The architecture is that a set of validation servers manage the token counters and respond to OTP requests from clients, and utilize a set of back-end YubiKey Key Storage Module (KSM) servers to perform the actual AES key decryption. The protocols are openly published. There are two implementations of the KSM available: yubikey-ksm (PHP, secrets on disk in database) and yhsm-yubikey-ksm (Python, for use with secrets protected by the YubiHSM hardware). Sometimes the KSM runs on another server than the validation server, but it is possible to run both on the same machine. After installing and configuring this package you will have a YubiKey validation server up and running via Apache.
There are three methods to install yubikey-val
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install yubikey-val Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install yubikey-val
using apt-get
by running the following command:
sudo apt-get -y install yubikey-val
Install yubikey-val Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install yubikey-val
using apt
by running the following command:
sudo apt -y install yubikey-val
Install yubikey-val Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install yubikey-val
using aptitude
by running the following command:
sudo aptitude -y install yubikey-val
How To Uninstall yubikey-val on Ubuntu 18.04
To uninstall only the yubikey-val
package we can use the following command:
sudo apt-get remove yubikey-val
Uninstall yubikey-val And Its Dependencies
To uninstall yubikey-val
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove yubikey-val
Remove yubikey-val Configurations and Data
To remove yubikey-val
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge yubikey-val
Remove yubikey-val configuration, data, and all of its dependencies
We can use the following command to remove yubikey-val
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge yubikey-val
References
Summary
In this tutorial we learn how to install yubikey-val
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.