RC RANDOM CHAOS

Hardware-Backed SSH Keys for Enhanced Security

· via Hacker News

Original source

I deleted all my SSH keys

Hacker News →

The author details their transition from traditional on-disk SSH keys to hardware-resident keys using YubiKeys, TPM, and Apple Secure Enclave. They argue that while passphrases provide sufficient security for most users, hardware-backed keys offer additional protection by ensuring key material cannot be exfiltrated without the physical device. The article outlines methods for generating and using ed25519-sk keys on YubiKeys, configuring TPM-backed keys with the ssh-tpm-agent tool, and considerations for unattended usage scenarios. Each approach includes specific commands for key generation, configuration, and integration with SSH clients. The author emphasizes the trade-offs between convenience and security, particularly when using no-touch-required keys or PIN-free TPM keys, which may expose systems to risks if compromised.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.