yubikeyd command not found

In this troubleshooting guide we learn how to fix yubikeyd command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

yubikeyd: command not found

or when using sudo you get the following error message

sudo: yubikeyd: command not found

Solutions to yubikeyd: command not found

How To Fix yubikeyd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu yubikeyd is provided by yubikey-server-c package.

yubikey-server-c is:

Yubikeys are USB tokens that act like keyboards and generate one-time passwords. The tokens are produced and sold by Yubico

This is a server that checks the validity of those OTP tokens. There are servers written in Java and PHP, while this one is written in C

It implements the server side of the API as described on http://www.yubico.com/developers/api/ and can be used with any client that implements the same API.

To fix this problem, we can install more using the command below.

sudo apt-get -y install yubikey-server-c

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install yubikey-server-c.

sudo apt -y install yubikey-server-c

Or if you have aptitude installed you can use the following command.

sudo aptitude install yubikey-server-c

Summary

In this tutorial we learn how to fix yubikeyd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.