About Blog Contact

YubiKey Manager Setup

My YubiKey finally arrived! However, the documentation for it’s command line tool is a bit unclear.

The command line manager for YubiKey is ykman. To install it, we can run:

pip install --user yubikey-manager

However, there are a few prerequisites, which the documentation mentioned, but did not include the apt package names. For your reference, you need:

apt install swig
apt install pcscd
apt install libpcsclite-dev
apt install scdaemon

This is because ykman is not a pure python library. It has C extensions, which are built when it’s installed. The document really should move the Pre-build packages to the top, pip install has too many potential pitfalls.