Watchlist · For geeks and ninjas ·

A practical guide to post-quantum SSH

Use SSH for servers, Git, or a home lab? Start by checking how your connection is protected. Then try hybrid login keys where both ends support them. Keep a working way in while you test.

1. Check the connection first

SSH key exchange (KEX) sets up the encryption for your session. Your login key proves who you are, and the host key proves which server you reached. Those are separate jobs.

Run ssh -v user@host on a connection you normally use and look for kex: algorithm:. OpenSSH has offered hybrid post-quantum key exchange by default since 9.0 and prefers mlkem768x25519-sha256 since 10.0. Look for that or a hybrid sntrup761x25519 variant. What the connection actually negotiates matters more than the version number. A classical login key can still be used with hybrid key exchange.

2. Try a hybrid login key where you can

On systems you manage, install current vendor security updates on both ends. Upstream OpenSSH 10.6 enabled the hybrid ssh-mldsa44-ed25519 signature. Earlier experimental keys used a different format. Check local support with ssh -Q key and confirm that the server or Git host accepts it before switching.

ssh-keygen -t mldsa44-ed25519 -f ~/.ssh/id_mldsa44_ed25519

Add only the new public key (the .pub file). Leave your current session open, test the new key in a second session, and verify that SSH actually used it. Keep your old key until the replacement and your recovery path both work.

3. Keep a working fallback

If a managed service doesn't take the new key type, stick with a key it supports. There’s no blanket reason to replace a working Ed25519 key today. If your policy requires a classical alternative, RSA 3072 or 4096 with SHA-2 signatures, or ECDSA P-384, may be options where supported. These are compatibility choices, not post-quantum keys. Don’t turn legacy RSA/SHA-1 back on.

Why now?

The Dec. 2 NSA advisory calls for faster migration on U.S. National Security Systems. The joint ONCD, NSA and CISA statement says the recent AI findings do not pose an immediate, widespread threat to the cryptography discussed. The public guidance doesn’t establish that SSH’s Ed25519 keys were broken.

Further reading: OpenSSH on post-quantum key exchange · OpenSSH release notes · Q-Day · P vs NP