Remix.run Logo
▲ fabian2k 4 hours ago

What's the best option now or in the near future for securing SSH keys? I've been toying with the idea of putting them on a Yubikey, so that they're not stored persistently on the PC. But now the best move seems to be to also use a stronger algorithm, which does seem to have very limited hardware support at this moment.

Or would it be a more worthwhile path to add 2FA to the SSH servers using FIDO2 or something like that?

▲cvwright 20 minutes ago | parent | next [-]

Stealing your laptop and cracking your human memorable password is still a lot easier than 2^85 or whatever it’s going to be to break ed25519.

Stick with the yubikeys for now, and upgrade when new ones are available.

▲mvip 4 hours ago | parent | prev | next [-]

I think for the foreseeable future, the name of the game is crypto agility. Shorter lived keys, and being able to adopt new ciphers as existing (and new ones) are proven to be inadequate.

▲n923263 2 hours ago | parent [-]

> Shorter lived keys, and being able to adopt new ciphers

Only if you have significant constraints on storage or (more likely) transfer size. If you're okay with large encryption keys (but small encapsulations) and large signatures (but small verification keys), you can just use McElice encryption and Lamport signatures and basically ignore almost anything short of P=NP (in which case you're screwed regardless).

▲stephbook an hour ago | parent | prev [-]

I'd buy YubiKeys. If AI breaks stuff that YubiKeys can encrypt, you won't be the first or most worthwhile target. Also you could then just switch to a newer model or adopt a different way of auth altogether.