Engineer deletes all on-disk SSH keys in favor of YubiKey, TPM and Secure Enclave
banteg · x · 2026-11-16
Alex Haydock documents fully eliminating unprotected on-disk SSH key material by moving to hardware-resident keys across YubiKey, TPM, and Apple Secure Enclave.
Key points:
- A passphrase (bcrypt+AES + ssh-agent) is probably enough for most threat models, but hardware-resident keys make exfiltration structurally impossible — key material never leaves the device.
- The author prioritizes native OS support over extra software, and tests real-world edge cases like running inside LXC containers and non-interactive SSHFS mounts.
A practical write-up for self-hosters and sysadmins considering the switch.
More from coding & agent
- Dev burns $4,000+ on AI coding in a year, ships nothing: "it didn't meet my standard" — ryunuck · 2026-11-16
- AI disclosure debate: "being detectable is the real failure," says dev who shipped nothing for a year — ryunuck · 2026-11-16
- Homelab v3: a closet turned private AI data center with 10G networking, local LLMs and a 4090 server — LinusEkenstam · 2026-11-16
- Why Personal Agents like Muse build stickier moats than Coding Agents — TianbaoX · 2026-11-16
- Creator uses an AI employee to turn 3 months of emails into a 40-deal brand collab ledger — SucceededMind · 2026-11-16
- Better prompts can't fix a broken AI agent infrastructure — fix the harness instead — bibinprasannan · 2026-11-16