Live data from Hacker News

How to Store an SSH Key on a Yubikey

xeiaso.net

151–154 of 154 posts

Re: How to Store an SSH Key on a Yubikey

#151

I know Yubikeys are pretty old hat by now, but I still feel weirded out by relying something like this into a USB stick. I just know I would lose the key at some point locking me out from everything. Of course the solution is to have two keys, but don't really know where I would feel comfortable storing the extra key (also how often do you check that it still works?) I'm probably just over thinking this and overly pa…

As someone who uses Yubikey for about 5 years for SSH, GPG and O2F, an extra key is indeed the solution I use. Effectively it means all integrations must support multiple keys, and you’ll have to register both. Of course, this doesn’t work everywhere, such as AWS. In those cases, I typically use my “main” key. I’d argue that the key breaking due to wear or being lost is less of a risk than human error: just last week…

I backup everything directly to GitHub. I first encrypt/seal my passwords/files using a Yubikey+PIN then git push them.

Here's my take on the automation: https://github.com/mihaigalos/pass

Re: How to Store an SSH Key on a Yubikey

#152
post #34

Earlier quoted context omitted.

You're not wrong, but this is exactly the use case for a USB security stick. The key is in there, cannot be extracted in any way*, can only be "used" (not accessed or copied, just used for crypto operations) while the stick is plugged in, and without it it's impossible to proceed. It kind of goes without saying that losing the key results in you getting locked out - if there was any other way there wouldn't really be…

I actually wish there was an in-between model that supported key extraction. Let me store my key in a secure, offline, physical device... and extract to clone it when my yubikey is worryingly old. My threat model does not include physical attacks, but storage of a key on-device or in backups? Or forgetting a password for an encrypted archive? yep.

https://pistonvault.com

Re: How to Store an SSH Key on a Yubikey

#153
post #25

Earlier quoted context omitted.

I suggest testing it yourself in any case, I don't think this article is correct in this. I did try it in the past with Google Titan and not a Yubikey and I could be wrong. EDIT: `-O resident` might be what is doing it though, I wasn't aware of this option.

> EDIT: `-O resident` might be what is doing it though, I wasn't aware of this option. Indeed. This will use FIDO 2 Discoverable Credentials / Resident Keys. Those are fully stored on-key (but their number is limited): https://developers.yubico.com/WebAuthn/WebAuthn_Developer_Gu... . Non-resident keys will basically give out the private key encrypted with a static master key as the key handle and thus support an unli…

> Non-resident keys will basically give out the private key encrypted...

I thought U2F took a random string from the caller and derived the private key that..

Re: How to Store an SSH Key on a Yubikey

#154

Earlier quoted context omitted.

I actually wish there was an in-between model that supported key extraction. Let me store my key in a secure, offline, physical device... and extract to clone it when my yubikey is worryingly old. My threat model does not include physical attacks, but storage of a key on-device or in backups? Or forgetting a password for an encrypted archive? yep.

https://pistonvault.com

The robot arm part of this reminds me so much of StorageTek’s tape drive robots. Man those were so cool to watch wizzing around in their giant tubes grabbing and loading tape drives on demand.
Post reply on HN