News for hackers. Stuff that matters.
Re:Guide to Using YubiKey for GPG and SSH by dandanua on Wednesday January 26, 2022 @09:39AM (#30085925)
It's worth to add that the private key file generated by `ssh-keygen -t` is not the actual private key, but a reference (like a handle) to the private key stored on the secure device https://www.yubico.com/blog/github-now-supports-ssh-security...
Re:Guide to Using YubiKey for GPG and SSH by nikolay on Thursday January 27, 2022 @12:20AM (#30096535)
I've been using this but you can't switch the security key, unfortunately. Just upgraded my security key and now I'm stuck with the old key.
Re:Guide to Using YubiKey for GPG and SSH by dandanua on Thursday January 27, 2022 @03:40AM (#30097862)
Yes, the practical impossibility of recovering a private key from a security device is a feature. This implies you can't change security devices without changing public keys.
Re:Guide to Using YubiKey for GPG and SSH by nikolay on Thursday January 27, 2022 @04:08PM (#30106713)
Yeah, I just didn't know how it works; didn't know it was stored there, but assumed it was just encrypted with the secret in the key, i.e. in the presence of the old and the new security key, it could be decrypted and re-encrypted with the new one.