(sethmlarson.dev)
find ~/.ssh -type f -name "*.pub" -exec ssh-keygen -lf {} \;Should we be moving off these as well?
But also, I don't think that's extremely urgent at a personal level. It seems like this still require being targeted and a lot of effort to crack a key.
For auth they are perfectly fine - it's like saying 17 character passwords are no longer good enough...
I don't really see that happening on my stuff which is a very low value target.
I would stop publishing them on eg GitHub etc but I've never done that anyway.
If you did for example, use the same key for github and login, anyone could access your public keys on this unauthenticated url:
Besides, there are additional (server-side) safeguards to prevent someone from doing these sorts of mass public key checks using anyone's public key, including (but not limited to) IP whitelisting and port knocking.
It's an another attack vector too though, if you SSH to my server you send me all of your public keys in ~/.ssh by default (or at least the hashes of them), and I can compare them to GitHub to find out your real identify. Github is just making this trivial by needlessly exposing them.
Also, many web apps using JWT tokens embedded in cookies will hit the 8K max header length just because of the humongous signatures
For now, and for my personal security model, I am simply increasing key sizes.
WTF?!?
Why would this be ignored instead of failing the command?
Am I reading this wrong, or is the author's example showing an Ed25519 key?
Emphasis at the end is mine: that is true, however we live in the timeline where the obvious reason is way too often not the real reason. So giving the benefit of the doubt to people requiring others to do a bunch amount of heavy lifting, based on unknown motivations, is getting old very quickly...
I'm not at all saying that this cannot be a good reason. Just that "this is hard for many, so they must mean it" doesn't pass the current climate's sniff test (for me).
(I wonder how many others waste their time like me with this "security" theatre and miss-information/ half-information)
Currently, no. But there's a lot of speculation going around that it likely has some vulnerability that's on the precipice of being disclosed. The NSA "Move to post quantum crypto now" notice and Anthropic's research into lattice crypto has people spooked.
The ssh keys are only used for auth (like a HUGE A** password), and if you don't share your public keys with random 3rd parties (like you wouldn't share your password hashes either) it should be relatively safe, I think.
But it's all very confusing now for sure.
So it's less about being quantum safe IMO and more about there being potential vulnerabilities within the algorithm.
> The ssh keys are only used for auth (like a HUGE A* password)
It's better than that. You can give out a public key which your server uses to encrypt the handshake. Only your private key is capable of decrypting things encrypted with your public key. The key for 25519 isn't particularly long.
The potential risk is that there is a way to reverse or generate a private key from that public key. It could be that the search space is a lot smaller than expected.
You shouldn’t be doing this, and you should move to short-lived SSH certificates instead; a feature that has been available since 2010 to avoid this very issue (and to solve many others.)
If the issue is that there is some way to factor a private key from a public key, it doesn't matter if that public key is the signing key or the authorized key itself. The attacker could just sign their own key at that point, anyway.
Don't get me wrong, using temporary signed keys for access instead of a static key has other benefits, but it does not help this particular issue.