The more pressing issue is making sure your key exchange algorithm is set to using post-quantum hybrid algos.
The current threat is "store now, decrypt later," so you want to make sure the traffic flow is sufficiently secured.
The SSH keys you use to log in are for authentication only, not encryption. For authentication, there's not a current known threat because someone would have to have a computer capable of cracking your key right now, in real-time.
You can add the following line to your server's sshd_config file to ensure you only accept post-quantum hybrid key exchange algorithms.
you can also ssh to a live server with -vv (double verbose is important, single verbose won't give you these full details) to see the actual details of the protocol negotiation.
for example, this is within my homelab, where I know all clients and servers are on the latest OpenSSH so I can lock the options down:
The entire point of having hybrids was to hedge against relatively new and untested PQC algos like ML-KEM/DSA. But now that p256, curve25519, etc. would soon be obsolete I hope these would be swapped out in hybrids with stronger ones.
But the other pair in the hybrid has to be strong too. Can't have one known-to-be-broken (p256, ed25519) one paired with a relatively new (mldsa) but not yet broken one.
Btw, it's the first time I'm hearing about sntrup. It's not available in OpenSSH 10.6.
oh shit… so if we can attack Diffie-Hellman at the initial key exchange, all ephemeral keys will be known, including any tricks like ratcheting? Right??!
SSH rekeying is just another DH, and equally vulnerable. Essentially it is a new session, no ratcheting, so shorter rekeys just make it more likely the listener catches a rekey event.
The current threat is "store now, decrypt later," so you want to make sure the traffic flow is sufficiently secured.
The SSH keys you use to log in are for authentication only, not encryption. For authentication, there's not a current known threat because someone would have to have a computer capable of cracking your key right now, in real-time.
You can add the following line to your server's sshd_config file to ensure you only accept post-quantum hybrid key exchange algorithms.
Similarly, on your clients, you can add a KexAlgoritms entry under 'Host *' in ~/.ssh/config/