Hacker News new | ask | show | jobs
by dingaling 19 days ago
This is all, frankly, nonsense.

If you're using userspace software to decrypt the keys into memory then it's all just security theatre. Any sufficiently motivated actor, ot a comprised package in the software chain, can capture your private key in the clear. Especially if using ssh-agent that keeps it resident in memory 'for convenience'.

Proper HSM integration with SSH requires challenges signed by the HSM without the private key ever being emitted.

Just keep your SSH keys on disk, one per remote host, with a different encryption password for each target host. If you're worried about threats that can defeat that then they'll just come to your door and beat the passwords out of you.

2 comments

At least for the Yubikey option, the whole point is that the private key does not leave the HSM.
> This is all, frankly, nonsense.

Only because you clearly don't understand how it works. What's interesting is that you seem to understand half of it... or maybe you don't, and you just repeat stuff you don't understand either?

> If you're using userspace software to decrypt the keys into memory

That's exactly why you don't do it. A Yubikey or a secure enclave create the private key and emit the public key.