Even if your SSH connections are encrypted, authenticated, and fully up to date, they could become vulnerable in the near future.

On December 2, 2026, the NSA called for an immediate acceleration of the move to post-quantum cryptography.
NIST has already standardized ML-KEM, one of the algorithms meant to replace cryptography that quantum computers could break.
Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, and Oracle now support that acceleration.

When that many institutions and companies ask you to move faster, the problem has escaped the science-fiction shelf.
Your Linux servers and VPS are involved today.

The most worrying part is that your servers may already have the protection without using it.
OpenSSH has supported a hybrid post-quantum exchange for years.
So how can an updated system still choose cryptography that a future quantum computer could break?

The Attack Starts Before Quantum Computers

An attacker does not need a quantum computer to start the attack.
They only need storage.

The strategy is called “harvest now, decrypt later.”
An adversary records encrypted traffic today, keeps it for years, then tries to decrypt it when better tools arrive.
Imagine someone stealing a locked safe because they expect to own the right drill later.
The safe still works today.
Its contents may not stay secret for as long as you need them to.

That is what the NSA warning means when it says adversaries already collect encrypted information for future decryption.
The agency’s announcement targets US National Security Systems directly, but the same logic applies to SSH traffic that must stay private for years.
Quantum-resistant key exchange does not replace ordinary hardening, so keep the basic SSH server hardening checklist in place too.

Waiting for a cryptographically relevant quantum computer misses the point.
Collection happens before decryption.

OpenSSH already ships a practical defense.
Having the defense installed does not prove that a connection uses it.

My Updated Servers Still Chose Classical Crypto

I tested my own servers from an updated Mac.
The client reported OpenSSH 10.5p1.
The Ubuntu 24.04 servers reported OpenSSH 9.6p1.
Nothing looked ancient.

Then I checked the algorithm negotiated by a fresh connection:

ssh -vv -o ControlMaster=no -o ControlPath=none user@your-server exit 2>&1 | grep 'kex: algorithm' 

The extra options matter because an existing multiplexed connection can reuse an old SSH session and hide the new negotiation you are trying to inspect.

My result was this:

kex: algorithm: ecdh-sha2-nistp256 

That exchange is considered secure against classical computers today.
It also depends on an elliptic-curve problem that Shor’s algorithm could solve on a sufficiently powerful quantum computer.
An attacker who records the session now could keep the encrypted traffic and wait.

My servers were updated, and my client was newer than the servers.
The negotiated exchange was still classical.

Version numbers had given me a very comfortable wrong answer.

The handshake is the truth. The version number is just the résumé.

The Servers Already Had the Fix

OpenSSH has enabled a hybrid post-quantum exchange by default since version 9.0.
Newer releases also support mlkem768x25519-sha256, which uses the NIST-standardized ML-KEM construction.

My servers advertised SNTRUP.
When I forced a test with that exchange, the connections succeeded.
The servers did not need a patch or a restart.

The cause sat on the client.
An included policy file on my Mac placed ecdh-sha2-nistp256 before the hybrid exchanges.
SSH chooses the first algorithm in the client’s preference list that the server also supports.
Both sides knew a post-quantum hybrid.
The client politely chose the older common option first.

My servers knew the quantum spell. My client kept casting the legacy one.

This is the quiet failure mode.
An update adds a stronger algorithm, while an older hardening policy keeps winning the negotiation.
The machine looks current and the connection succeeds, so there is no visible failure to investigate.

SNTRUP and ML-KEM use a hybrid design.
They combine a post-quantum method with X25519, a well-studied classical method.
An attacker must defeat both parts to recover the shared secret.
If the post-quantum construction develops a weakness, X25519 still protects the session against classical attacks.
If a future quantum computer breaks X25519, the post-quantum part still protects the session.

The name mlkem768x25519-sha256 describes that construction.
ML-KEM is the NIST-standardized post-quantum mechanism.
768 names its parameter set, not a 768-bit key.
X25519 is the classical half.
SHA-256 is used in the combined exchange.

Check the Server First

A client cannot negotiate an exchange that the server does not offer.
The quickest proof is a forced handshake from a client that already lists SNTRUP in ssh -Q kex:

ssh -vv -o ControlMaster=no -o ControlPath=none -o KexAlgorithms=sntrup761x25519-sha512@openssh.com user@your-server exit 2>&1 | grep 'kex: algorithm' 

If the connection reaches authentication and prints that SNTRUP name, the server supports it.
If SSH reports no matching key exchange method found, inspect the server’s effective configuration:

ssh -t user@your-server "sudo sshd -T | grep '^kexalgorithms'" 

sshd -T validates the configuration and prints what the daemon will actually offer.
A green SSH prompt proves access.
It does not prove the handshake you wanted.

If the server does not support either hybrid exchange, update OpenSSH from the operating system’s supported repositories.
On Ubuntu or Debian, run:

sudo apt update sudo apt install --only-upgrade openssh-server openssh-client 

On Fedora or RHEL, run:

sudo dnf upgrade openssh-server openssh-clients 

Keep the current SSH session open, validate the configuration, reload the correct service for the distribution, then open a second connection before closing the first one:

sudo sshd -t sudo systemctl reload ssh # Fedora and RHEL normally use: sudo systemctl reload sshd 

If the supported repository still provides an OpenSSH release without SNTRUP, upgrade the operating system or use a vendor-supported backport.
Do not turn an SSH upgrade into a surprise source-build maintenance project.
The gap resembles why older servers may miss real security fixes even while they still receive ordinary updates.

If your first move is to close your only working session, congratulations: you upgraded crypto and downgraded access.

Check What SSH Negotiates

Do not stop at ssh -V.
You need to inspect 3 different facts: what your client supports, what its effective configuration prefers, and what a real connection negotiates.

On macOS and Linux

First, list the exchanges your client supports:

ssh -Q kex | grep -E 'mlkem|sntrup' 

Then inspect the effective preference list after SSH reads every included configuration file:

ssh -G user@your-server | grep '^kexalgorithms ' 

Finally, force a new connection and inspect the negotiated result:

ssh -vv -o ControlMaster=no -o ControlPath=none user@your-server exit 2>&1 | grep 'kex: algorithm' 

Your personal client configuration lives at ~/.ssh/config.
On macOS, inspect the Include lines in /etc/ssh/ssh_config if ssh -G shows an unexpected order.
On Linux, system policies commonly live under /etc/ssh/ssh_config and /etc/ssh/ssh_config.d/.
Distribution crypto policies can also change the effective order, so trust ssh -G and the real negotiation rather than the file you expected SSH to read.

On Windows

Run the checks in PowerShell with the built-in OpenSSH client:

ssh -Q kex | Select-String 'mlkem|sntrup' ssh -G user@your-server | Select-String '^kexalgorithms ' ssh -vv -o ControlMaster=no -o ControlPath=none user@your-server exit 2>&1 | Select-String 'kex: algorithm' 

Microsoft documents the per-user client configuration at %USERPROFILE%\.ssh\config.
The system-wide client configuration lives at %PROGRAMDATA%\ssh\ssh_config.

Do not assume the OpenSSH build bundled with your Windows release supports a hybrid exchange.
The ssh -Q kex result answers that question on the machine in front of you.
If it lists neither ML-KEM nor SNTRUP, update the client before adding either name to its configuration.

For all 3 systems, a negotiated result of mlkem768x25519-sha256, sntrup761x25519-sha512, or sntrup761x25519-sha512@openssh.com gives you a hybrid post-quantum key exchange.
If you see curve25519-sha256, ecdh-*, or diffie-hellman-*, the session negotiated a classical exchange.
That can mean old software, but it can also mean a preference or policy problem like mine.

Put the Hybrid Exchanges First

Only change the configuration after ssh -Q kex confirms which names your client supports.
For a recent client that supports both ML-KEM and SNTRUP, add a targeted block to the user configuration:

Host server-one server-two KexAlgorithms ^mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com 

The ^ places those algorithms at the front of the existing default list.
It does not delete the classical fallbacks.
That makes the change safer for a mixed estate than replacing the entire list.

On macOS and Linux, save the block in ~/.ssh/config.
On Windows, save it in %USERPROFILE%\.ssh\config.
Replace the example host aliases with your own.

If your client supports SNTRUP but does not recognize ML-KEM, use this block instead:

Host server-one server-two KexAlgorithms ^sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com 

Keep an existing session open when you change access to a critical server.
Then rerun ssh -G and the verbose connection check.
The fix only counts when the final kex: algorithm line changes.

My normal connections negotiated SNTRUP after I changed the targeted client preference.
I did not modify the servers because they already supported it.

That was the whole repair.
The investigation took longer than the fix, which is the traditional SSH tax.

What This Fix Does Not Protect

A hybrid key exchange protects the shared secret used to encrypt the SSH session.
It does not automatically make every part of SSH post-quantum.

Your Ed25519, ECDSA, or RSA keys still authenticate hosts or users with classical signatures.
The migration of signatures is a separate problem.
The OpenSSH project says post-quantum signatures are still under development and standardization, while hybrid key exchange is available now to protect recorded traffic.

The recent AI headlines also need one correction.
AI has accelerated cryptanalysis research and compressed migration timelines.
It has not produced a practical break of deployed ML-KEM, and the UK National Cyber Security Centre said the latest research did not threaten the standardized algorithm.
Cloudflare reacted by moving its own fully post-quantum target from 2029 to 2027.
That is an industrial warning about the pace of research, not proof that today’s encryption suddenly collapsed overnight.

The NSA’s order applies directly to US National Security Systems.
Your VPS is probably not one of them.
The recorded-traffic problem is still the same, and replacing a negotiated key exchange is cheaper before an emergency than during one.

Check your servers and every macOS, Linux, and Windows machine that connects to them.
Make sure a lax negotiation does not open a gaping hole in the future confidentiality of your systems.

Sources