Resident SSH Keys
conceptA resident SSH key is a hardware-backed SSH key where the hardware device stores the key's identity, remembers the key exists, and the private key is generated and stored entirely inside the hardware. The private key never exists as a file, never needs to be reconstructed from disk data, and lives permanently inside the hardware key.
With a resident key, the hardware stores the private key and the key's identity. The computer stores nothing essential—only a stub, a small non-secret pointer file that tells SSH which resident key to use. The hardware key already knows which key you mean and how to use it. No reconstruction is required.
The practical consequences: if you have the hardware key,
- the SSH key cannot be lost
- no files are required to recover access
- stubs can be regenerated anywhere, on any machine, with
ssh-keygen -K
A wiped laptop, a stolen disk, a fresh machine—none of it matters. Plug in the hardware key, regenerate the stubs, and you're back.