ykpamcfg command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ykpamcfg: command not found
or when using sudo you get the following error message
sudo: ykpamcfg: command not found
Solutions to ykpamcfg: command not found
How To Fix ykpamcfg: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ykpamcfg is provided by libpam-yubico package.
libpam-yubico is:
This package provides the Yubico PAM module. It enables the use of two-factor authentication, with existing logins and passwords plus a YubiKey One-Time Password that is validated against an online validation service. The default is the free YubiCloud, but it is easy to set up a custom service.
A second mode of operation is available using the YubiKey’s HMAC-SHA-1 Challenge-Response functionality. This allows for offline validation using a YubiKey, for example on a laptop computer. However, this only works for local logins, not for instance SSH logins.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libpam-yubico
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libpam-yubico.
sudo apt -y install libpam-yubico
Or if you have aptitude installed you can use the following command.
sudo aptitude install libpam-yubico
Summary
In this tutorial we learn how to fix ykpamcfg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.