Hacker News new | ask | show | jobs
by aorth 25 days ago
Great article! I discovered ssh-tpm-agent last year and was surprised that all my ThinkPads have hardware TPM, even one from 2018! I've switched over to using it for everything and there are no more private keys on my devices.

I also have a Yubikey but it's been a few years since I tried it for ssh keys. I use it as a regular security key. Maybe I should try it for ssh keys as it sounds like the tooling has improved.

2 comments

>I've switched over to using it for everything and there are no more private keys on my devices.

What happens when you replace the ThinkPad?

Best practice is to not share keys between devices. If you have multiple devices, you should have multiple keys.
You revoke that key from all of the places it is used. This is intentional. It is a pain in the ass but you can script it. The use case is you got honeypotted by a Chinese spy, so you can no longer trust that laptop. How do you get into your servers? Depends on the server, but one way is to have a master key on a secure device that's locked up tight. There are other ways too, but the goal is to be able to revoke access if the device has been compromised.
Interesting, will take a look