Skip to content

SSH "Not Using a Post-Quantum Key Exchange" Warning: How to Fix

Short answer. If your terminal shows WARNING: connection is not using a post-quantum key exchange algorithm, your SSH client (OpenSSH 10.1 or newer) is telling you that the server did not offer a post-quantum key exchange. Your session still works and is still encrypted, but someone who records it today could decrypt it later if elliptic curve cryptography is broken. The fix is on the server: upgrade it to a recent OpenSSH, or add mlkem768x25519-sha256 or sntrup761x25519-sha512 to its KexAlgorithms. You can hide the warning with the WarnWeakCrypto option, but that hides the risk rather than fixing it. After this week's NSA post-quantum warning, expect to see this message far more often.

OpenSSH post-quantum warning explained: the server did not offer mlkem768x25519 or sntrup761x25519 key exchange, fix by upgrading OpenSSH or adding them to KexAlgorithms; hiding the warning does not fix the risk

Key numbers

ItemNumber
Warning added in (Shown by default)OpenSSH 10.1
ML-KEM default since (April 2025)OpenSSH 10.0
First post-quantum default (2022, sntrup761x25519)OpenSSH 9.0
Oldest version you can enable it on (sntrup761x25519)OpenSSH 8.5
Standard for hybrid ML-KEM in SSH (2026)RFC 10042

Sources: openssh.com; RFC 10042. Checked December 4, 2026.

What the warning means

The full message reads:

** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html

According to the OpenSSH post-quantum page, OpenSSH has offered post-quantum key agreement by default since version 9.0 (2022), made mlkem768x25519-sha256 the default in 10.0 (April 2025), and started warning in 10.1. The warning appears when neither side can agree on one of the two post-quantum methods. "Store now, decrypt later" is the attack where traffic is recorded today and read later; we explain it in harvest now, decrypt later explained.

The warning is about the key exchange only. Your user key and the server's host key (usually Ed25519 or RSA) are signatures, which matter for impersonation once a break exists, not for recorded sessions.

Check what your server supports

OpenSSH post-quantum timeline: version 8.5 added sntrup761x25519, 9.0 made it default, 9.9 added mlkem768x25519, 10.0 made it default, 10.1 added the warning

From your own machine, run a verbose connection and look for the negotiated algorithm:

ssh -v user@your-server 2>&1 | grep "kex: algorithm"

If it shows mlkem768x25519-sha256 or sntrup761x25519-sha512, you are protected. If it shows curve25519-sha256 or an ecdh-sha2-nistp method, the server is using classical key exchange only. On the server, ssh -V shows the installed version, and ssh -Q kex lists every key exchange it knows.

Server OpenSSH versionPost-quantum supportWhat to do
10.0 or newermlkem768x25519 by defaultNothing; check no config file removed it
9.9mlkem768x25519 available, sntrup defaultFine as is; upgrade when you can
9.0 to 9.8sntrup761x25519 by defaultProtected; plan the upgrade for ML-KEM
8.5 to 8.9sntrup761x25519 available, not defaultAdd it to KexAlgorithms
8.4 or olderNoneUpgrade the server or put it behind a bastion

How to fix it on the server

How to fix the SSH post-quantum warning: upgrade OpenSSH, or add mlkem768x25519-sha256 and sntrup761x25519-sha512 to KexAlgorithms, test with sshd -t, restart while keeping a session open, confirm with ssh -v
  1. Upgrade OpenSSH through your distribution's normal updates. Newer releases ship post-quantum key exchange on by default.
  2. If you cannot upgrade yet but run 8.5 or newer, add the post-quantum methods to the front of the list in /etc/ssh/sshd_config, for example: KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,[email protected],curve25519-sha256. Leave out any name your version does not know (ssh -Q kex tells you), then test with sshd -t before restarting.
  3. Restart sshd while keeping your current session open, and connect again from a second window to confirm.
  4. Check other SSH servers: Git hosts, network gear, NAS boxes and appliances often run their own SSH code. Go's SSH library, for example, supports mlkem768x25519 from Go 1.24, but some products must turn it on manually.

The method names come from RFC 10042, which standardized hybrid ML-KEM key exchange for SSH in 2026.

Should you just turn the warning off?

You can set WarnWeakCrypto in your ssh_config to stop the message, and that is reasonable for a test box on your own network. For anything carrying customer data, credentials or production access, fix the server instead. SSH sessions often carry database dumps, secrets and admin commands, which is exactly the kind of traffic worth recording now and decrypting later.

SSH is one item on a longer list

If one server lacks post-quantum key exchange, the VPN, file transfer box and mail server next to it often do too. Our guide to what is at risk if RSA breaks ranks the 14 systems to check. Mail servers are another common gap; our email infrastructure work keeps SPF, DKIM, DMARC and TLS current. If you would rather hand the list to someone, our cybersecurity services run the assessment, apply the fixes we can make directly and report each month.

Get a security risk assessment

We design, build, and run it for you, integrated with the tools you already use. Free audit in 24 hours.

Get Your Free Audit

Frequently Asked Questions

It is a warning from OpenSSH 10.1 and newer. It means the SSH server did not offer a post-quantum key exchange such as mlkem768x25519-sha256 or sntrup761x25519-sha512, so the session uses classical elliptic curve key exchange that could be decrypted later if that cryptography is broken.

Upgrade OpenSSH on the server, or on version 8.5 or newer add mlkem768x25519-sha256 or sntrup761x25519-sha512 to KexAlgorithms in sshd_config, test with sshd -t and restart sshd. Then confirm with ssh -v that the negotiated kex algorithm is post-quantum.

The session is still encrypted and safe from anyone trying to break it today. The risk is that recorded traffic could be decrypted in the future, which matters for sessions carrying sensitive data or credentials.

OpenSSH lets you turn it off with the WarnWeakCrypto option in ssh_config. That only hides the message; it does not protect the session, so it is better to update the server.

OpenSSH 8.5 added sntrup761x25519-sha512, 9.0 made it the default, 9.9 added mlkem768x25519-sha256 and 10.0 made ML-KEM the default. Version 10.1 added the warning.

No. Ed25519 and RSA user and host keys are classical signatures. The OpenSSH warning concerns the key exchange, which protects recorded sessions. Signature keys will need replacing later, once post-quantum signature support is standard.

Free Strategy Audit

Ready to put this to work?

Join 200+ businesses already scaling with AI and automation. Get your free audit and a custom roadmap within 48 hours.

Website & marketing performance analysis
AI & automation opportunity mapping
Custom growth roadmap with ROI estimates
Delivered within 48 hours, 100% free
200+
Clients served
48hr
Turnaround
100%
Free, no strings

Get Your Free Audit

Takes 30 seconds. No credit card required.

Prefer to chat?

WhatsApp us