This guide walks through provisioning a YubiKey with a challenge-response secret using the command-line interface — the secret that YubiKey-protected blocks and standalone archives rely on, as do derived passwords and Bitcoin wallets. That secret is generated once and can be backed up or provisioned to as many YubiKeys as needed, so a lost or broken YubiKey can be replaced. The app offers the same workflow under File → Provision YubiKey, which can hand the generated secret straight to a block backup.
Heads-up: for high-stakes secrets, use Superbacked OS — a hardened operating system that runs offline and persists nothing to disk.
The superbacked command is available in terminal on Ubuntu Desktop and Superbacked OS, and after the optional terminal step of the macOS and Tails guides.
Heads-up: only YubiKeys with the OTP application can be provisioned — the Bio and Security Key series do not support challenge-response.
Heads-up: on most YubiKeys, slot 1 ships programmed with the factory Yubico OTP credential and overwriting it is permanent — which is why Superbacked defaults to slot 2, leaving the factory credential intact. Use
--slot 1only if overwriting it is deliberate.
Heads-up: if the YubiKey’s OTP interface is disabled, the command offers to enable it and waits for the YubiKey to restart. If the slot is already programmed, the command asks before overwriting it — overwriting permanently destroys the current secret.
Heads-up: on macOS, opening the YubiKey requires granting the terminal Input Monitoring permission (System Settings → Privacy & Security → Input Monitoring) — macOS prompts on first use.
The YubiKey needs to be provisioned once with a challenge-response secret — the same operation Yubico Authenticator calls “Program a challenge-response credential”. The following command generates a challenge-response secret, provisions slot 2, verifies the slot answers correctly and displays that secret so it can be backed up (on Superbacked OS, the first confirmation is skipped).
By default, computing a response requires touching the YubiKey — every derivation asks for physical presence.
Use --no-touch to provision a slot that answers without touch (weaker).
Heads-up: the challenge-response secret cannot be read back from the YubiKey — without a backup or another YubiKey provisioned with the same secret, every YubiKey-protected block or standalone archive is unrecoverable, as is every derived password and Bitcoin wallet.
Back up the challenge-response secret in a block that is not YubiKey-protected — restoring the backup must never depend on the YubiKey it provisions.
Provision another YubiKey with the same challenge-response secret so either one derives the same passwords and wallets — that secret is prompted twice (hidden) and must match. It can also be piped to the command instead of typed.
Copyright (c) Superbacked, Inc.