OGOPSEC // Dispatch
Choosing Security Keys for Linux: What to Look For
Shopping for security keys for Linux is easy to get wrong, because the marketing emphasizes brand and the fine print hides the parts that actually matter. The good news is that the decision comes down to a short list of properties. Get those right and almost any reputable key will serve you well for years. This guide walks through what to look for, what to ignore, and the one thing people forget until it is too late.
Start with the protocols
A "security key" can speak several protocols, and which ones you need depends on how you plan to use it.
- FIDO2 / WebAuthn — the modern standard for passwordless and phishing-resistant login, on the web and (via
pam-u2f) on the Linux desktop. This is the one to insist on. - U2F — the older second-factor protocol. FIDO2 keys are backward compatible, so you get this for free.
- PIV / smart card — useful for certificate-based login, S/MIME, and some SSH setups.
- OpenPGP — lets the key hold GPG keys for signing and encryption, and can back SSH authentication.
- OTP — the key can type a one-time code. Convenient for legacy services, less important than FIDO2.
If you only remember one line from this post: for Linux, prioritize FIDO2 with a PIN, and treat everything else as a bonus.
Form factor and connectivity
Match the connector to your actual hardware. Check whether your machine (and your phone, if you want mobile use) needs USB-A or USB-C, and whether NFC matters to you. A USB-C key with NFC is the most future-proof combination for a mixed laptop-and-phone life, but there is no reason to pay for NFC you will never use. Consider leaving a small, low-profile key semi-permanently in a laptop port, with a sturdier key as your backup.
PIN, biometrics, and user verification
A bare key proves presence — that someone tapped it. Adding a PIN (set once, verified on the key itself) proves you, turning a single device into real two-factor authentication: something you have and something you know. Some keys add a fingerprint sensor for the same purpose with less typing. For a key that can unlock a Linux login, enabling the PIN is strongly recommended — without it, a stolen key plus a known username is a shorter path than it should be.
Open firmware versus closed
Keys from vendors like Nitrokey and SoloKeys offer open-source firmware you can inspect and, in some cases, build yourself. Closed-firmware keys from vendors like Yubico are not auditable in the same way but have a long track record and broad compatibility. Neither choice is wrong. If verifiability is central to your threat model, open firmware is a genuine advantage; if you want the widest compatibility and the deepest deployment history, the established closed keys are a safe bet. What you should not do is buy an unbranded, no-name key with no firmware update story.
A quick comparison
The thing people forget: buy two
Because a FIDO2 private key cannot be exported or cloned, a lost or dead key means losing access to everything registered only to it. The fix is not clever — it is to register at least two keys with every important account from the start, and keep the backup somewhere safe and separate. Treat this as non-negotiable rather than an afterthought, because account-recovery flows designed to rescue you from a lost key are often the weakest link an attacker can target.
What a key will not do
A security key is an authentication device, not a security suite. It does not encrypt your disk, scan for malware, patch your software, or protect a session you have already unlocked. It solves the login-and-phishing problem extremely well and leaves the rest of your defenses to other tools. Plan for it as one strong layer.
If you want that layer delivered as a complete, Linux-native setup rather than a box of parts to configure, our Dire Wolf key pairs a hardware-anchored FIDO2 credential with fail-closed login and TPM binding out of the box. If you prefer to assemble your own, use this checklist, buy a reputable pair, and you will be in good shape.