The SSH post-quantum key exchange warning explained

The OpenSSH warning that a connection is not using a post-quantum key exchange algorithm tells you the session can be recorded and decrypted later. Here is what it means, who acts on it and how to find the side that needs to change.

On this page

What the SSH post-quantum key exchange warning means and whether it is urgent

If your ssh client printed a warning saying the connection is not using a post-quantum key exchange algorithm, the session may be recorded now and decrypted later. The warning comes from OpenSSH 10.1, released on 2025-10-06, and the full text reads: " WARNING: connection is not using a post-quantum key exchange algorithm." followed by " This session may be vulnerable to "store now, decrypt later" attacks." and "** The server may need to be upgraded. See The connection is still encrypted, and the data you send is not exposed to someone watching the network today. What the warning flags is that the key exchange used to set up the session is not post-quantum, so anyone who records the traffic now could, in principle, decrypt it later once capable quantum computers exist. The OpenSSH 10.1 release notes say the warning was added because of that risk.

Treat the warning as a prompt to check the server, not as an active failure. Nothing has broken, and your login and commands will keep working. The release notes describe the warning as a signal about the negotiated algorithm, so the first thing to find out is whether the server can offer a post-quantum option at all. The OpenSSH pq page says the ideal fix is to upgrade the server to a version that supports at least one post-quantum algorithm: 9.0 and later support sntrup761x25519-sha512, and 9.9 and later support mlkem768x25519-sha256. Run ssh -V on the server to see its version, and ssh -Q kex to list the key exchange algorithms it supports.

Urgency depends on what the session carries and how long that data must stay confidential. Sessions that move low-sensitivity material, or data that will be useless after a few months, carry little exposure. Sessions that carry long-lived secrets, regulated records or credentials that will still matter in years justify prioritizing the server upgrade. If a server already supports a post-quantum algorithm, check that its KexAlgorithms setting has not disabled it, since that is a fast fix that does not require an upgrade.

Who has to act on the SSH warning: the server operator or the user

The OpenSSH warning can be resolved from either end of the connection, but each party controls different settings. Start by identifying which side is responsible for the connection you are seeing the warning on, then check only the items that side can change.

The person typing the command

If you run ssh, scp or git from your own machine, you control your client configuration in ~/.ssh/config and the KexAlgorithms and WarnWeakCrypto options that apply to a given host. You can check the installed client with ssh -V, list the key exchange algorithms your client supports with ssh -Q kex, and see the effective settings for a host with ssh -G. You cannot change what the remote server offers, so a warning that persists after your client already lists post-quantum algorithms usually points to the server side.

ssh_config manual

The team that runs the SSH server

The operator of the server controls the OpenSSH version installed on it and the KexAlgorithms setting in sshd_config. The OpenSSH post-quantum page says the ideal fix is upgrading to a version that supports at least one post-quantum algorithm, and that an existing post-quantum algorithm may be disabled by a KexAlgorithms setting that should be checked. Server operators are the only party who can make the warning go away for every client that connects.

OpenSSH pq page

Administrators of hosted Git services

If you push or pull code through a hosted Git or file transfer service, the service administrator controls the server version and its key exchange configuration, and you control only your local client. You cannot edit the service's sshd_config or its supported algorithms on someone else's host. Ask the provider which OpenSSH version runs on their SSH endpoint and whether they offer a post-quantum key exchange, and check the provider's own documentation for any settings they expose to customers.

Who may suppress the warning locally

The WarnWeakCrypto option is set in the client configuration, so the person running the command can silence the warning for a specific host with WarnWeakCrypto no-pq-kex inside a Match host block. This hides the message without changing the connection itself, so it is a reasonable short-term choice only if the risk is understood. Server operators should not rely on client-side suppression to resolve the issue for their users.

Checking the server's offered algorithms

Before deciding which side to act on, confirm what the server actually offers. The ssh_config manual gives the default KexAlgorithms list used by the client, and a KexAlgorithms list starting with + appends to that default, - removes from it, and ^ places entries first. If a post-quantum algorithm is missing from the server's list, the fix belongs with the server operator. Your sibling page on who has to act walks through the decision steps.

ssh_config manual

How to check where the SSH post-quantum warning comes from

This sequence tells you which side of the connection lacks a post-quantum key exchange algorithm. You confirm the client version, list what the client supports, check its effective configuration for the host, and then read the negotiated exchange in a verbose connection. The result shows whether the fix belongs on the client or on the server.

  1. Confirm the installed OpenSSH client version

    Run ssh -V on the machine where you see the warning. The command displays the OpenSSH version number and exits, and it does not open a connection. Record the version, because the warning first appeared in OpenSSH 10.1, released on 2025-10-06, and a client older than that will not print it at all. If the version is 10.1 or later, the client is able to show the warning, so continue to the next step. If the version is older, the warning you saw probably came from a different client or from a wrapper tool, and you should check that tool's documentation.

  2. List the key exchange algorithms the client supports

    Run ssh -Q kex to print the key exchange algorithms this client build supports. The output is a plain list with one algorithm per line. Look for post-quantum entries such as mlkem768x25519-sha256 and sntrup761x25519-sha512. If neither appears, the client cannot offer a post-quantum exchange, and the fix will involve the client or its build. If one of them appears, the client can offer a post-quantum exchange, and the question becomes whether the server accepts it.

  3. Print the evaluated client configuration for the host

    Run ssh -G followed by the host name, for example ssh -G example.internal, to print the client configuration after all Host and Match blocks have been applied. Find the kexalgorithms line in the output. If it lists post-quantum algorithms, your configuration does not remove them. If the line is missing post-quantum entries or starts with a removal, a KexAlgorithms setting in your ssh_config file has changed the list for this host. Compare this line with the list from ssh -Q kex to see what the client is prevented from offering.

  4. Run a verbose connection to the host

    Connect with ssh -v followed by the host, and repeat the flag to raise verbosity, up to three times as in ssh -vvv. Use the level that shows the key exchange negotiation, which is typically -vv or -vvv. Stop the session once you have the output. The debug lines show the algorithms your client proposed and the one the server selected. This output is the evidence that decides the question, so keep a copy of it.

  5. Read the negotiated key exchange algorithm

    In the verbose output, find the line that names the key exchange algorithm selected for the session. If the selected algorithm is post-quantum, the session is protected by one, and the warning should not appear for that connection. If the selected algorithm is not post-quantum, compare it with the client list from ssh -Q kex and the proposal shown in the debug output. When the client proposed a post-quantum algorithm and the server still selected a classical one, the server does not support the algorithm or its KexAlgorithms option has excluded it. When the client did not propose any post-quantum algorithm, the limit is on the client side.

  6. Check the server's own algorithm list on the server

    The server's list of supported algorithms can only be checked on the server, so this step is for the server operator. Run ssh -Q kex on the server host if the server's OpenSSH binary is available, and check the KexAlgorithms setting in the server's sshd_config. The OpenSSH pq page says a server version of 9.0 or later supports sntrup761x25519-sha512, and 9.9 or later supports mlkem768x25519-sha256. If the server supports one of these and the warning still appears, check whether a KexAlgorithms line has removed it. The fix on the server is to upgrade or to correct that setting, and the server must be verified after any change.

  7. Record which side needs to change

    Write down the result of the earlier steps: the client version, the client's supported list, the configured list for the host, and the negotiated algorithm. Mark the side that lacks a post-quantum option, either the client, where the build or configuration is the cause, or the server, where the version or its KexAlgorithms setting is the cause. Also confirm whether the server operator or the client user has to make the change. This record tells the right team what to act on and gives them evidence to check against once the change is made.

Which situations trigger the warning and what each one means

This table lists the four situations that produce the OpenSSH post-quantum warning or change what the client can negotiate. Read each row to see what the situation means and which side of the connection needs the next action. The main takeaway is that the warning is usually fixed on the server, unless a client override is removing post-quantum options.

SituationWhat it meansNext action
Client on OpenSSH 10.1 or later, server offers no post-quantum exchangeThe ssh client warns that the session may be vulnerable to store now, decrypt later attacks, because the negotiated key exchange is not post-quantum.Upgrade the server to 9.0 or later at minimum, or 9.9 or later for mlkem768x25519-sha256, per the OpenSSH pq page.
Server on OpenSSH 9.0 or later, KexAlgorithms disables its post-quantum optionThe server supports a post-quantum algorithm but its KexAlgorithms setting has turned it off, so clients cannot negotiate it.Check the KexAlgorithms line in sshd_config and re-enable the post-quantum entry, then confirm with ssh -Q kex on the client side.
Server on OpenSSH 9.9 or later, mlkem768x25519-sha256 availableThe server can offer the ML-KEM hybrid exchange, so the warning should go away once a client negotiates it.Confirm the algorithm is listed by the server and that the client's KexAlgorithms includes it, then check with ssh -v.
Client KexAlgorithms override removes post-quantum entriesThe client configuration excludes post-quantum algorithms, so the connection falls back to a non-post-quantum exchange even when the server supports one.Find the override with ssh -G, then add post-quantum entries back using the + or ^ forms in ssh_config.

Decision path from the warning to the fix

The path starts when your client prints the WARNING line during an ssh connection. First, run ssh -V to confirm the client version, then ssh -Q kex to see which key exchange algorithms the client supports. Next, check the server's supported exchanges and whether KexAlgorithms in your configuration has removed a post-quantum algorithm the server already offers. If nothing is disabled, upgrade the server to 9.0 or later for sntrup761x25519-sha512, or 9.9 or later for mlkem768x25519-sha256. Use WarnWeakCrypto no-pq-kex inside a Match host block only for a specific host where upgrading is not yet possible.

The steps from the warning to either a server upgrade or a per-host silence.

What to do by role: developer, CI runner, server operator and hosted service user

On a developer workstation, the warning comes from your own ssh client, so the first checks are on your machine. OpenSSH 10.1 added the warning, and the client reports it when the negotiated key exchange is not post-quantum. Start by confirming which client you run and what it offers, because the list of key exchange algorithms comes from your client configuration and your local ssh build.

  • Check the installed version: run ssh -V to see the OpenSSH version number.
  • List what your client supports: run ssh -Q kex to see the key exchange algorithms your ssh offers.
  • Review the effective setting: run ssh -G <host> to print the client configuration after Host and Match blocks are evaluated, then find the kexalgorithms line.
  • Review your config file: check any KexAlgorithms line in ~/.ssh/config. A list starting with + appends to the default set, - removes from it, and ^ places entries at the head, so a restrictive list can drop the post-quantum options.
  • Trace the negotiation: run ssh -v <host> to see progress messages, and add more -v flags for detail, up to a maximum of 3.

If your config removes the post-quantum entries and you did not mean to, restore them. Then confirm the warning stops against a server that offers a post-quantum algorithm.

When silencing the SSH warning is a reasonable short-term choice

Silencing the warning is a defensible short-term choice only when you know the server cannot yet offer a post-quantum key exchange and you have a dated plan to upgrade it. The OpenSSH client exposes the control as the WarnWeakCrypto option in ssh_config, which defaults to yes, meaning all weak crypto warnings are on. Setting it to no disables every warning the option governs, not only the post-quantum one, so it removes more signal than most teams intend. The narrower choice is WarnWeakCrypto no-pq-kex, which the ssh_config manual describes as disabling only the warnings about connections that do not use a post-quantum key exchange. The OpenSSH post-quantum page suggests using this selectively, for example inside a Match host block that names one specific server, so every other connection keeps the warning.

A setting like this removes the signal without changing the exchange. The connection still negotiates the same non-post-quantum algorithm, and anything sent over it is exposed to the same "store now, decrypt later" risk the warning describes. Before you add the block, run ssh -G against the host to confirm which settings apply after Host and Match evaluation, and run ssh -Q kex on your client to see what it supports. Record the host, the reason, and the date you set the exception so someone can find and remove it later.

The trade-off is that you stop being told when the warning matters for that host. Keep the exception as narrow as the host list allows, tie it to a named upgrade task on the server side, and review it when OpenSSH releases change the defaults. The OpenSSH 10.6 release notes add a WarnWeakCrypto setting to sshd_config, so check server-side logging as well, since your client suppression will not hide what the server records.

What can break when teams react to the SSH warning

The warning is easy to make go away, and most of the ways teams do that also remove the protection or the signal they need. The cards below cover the changes that most often cause trouble when a team acts on the OpenSSH warning, so you can check each one before you edit a config or a script.

Pinned KexAlgorithms lists drop new entries

Many teams copy a KexAlgorithms line from an old hardening guide and pin it, which replaces the default list instead of extending it. A pinned list written before post-quantum algorithms existed will not offer them, so the warning keeps appearing even though the server supports them. The ssh_config manual says a list starting with + appends to the default set, and a list without a prefix replaces it. Check whether any KexAlgorithms line in your client or server config omits the post-quantum entries, and compare it with the default list in the ssh_config manual.

ssh_config manual

Global suppression hides every weak crypto warning

Setting WarnWeakCrypto no in a global client config silences all weak crypto warnings, not only the post-quantum one. OpenSSH 10.1 notes say the option is likely to control additional weak crypto warnings in future releases, so a global switch can hide signals you have not seen yet. The narrower no-pq-kex flag disables only the post-quantum key exchange warning. Use the scoped form inside a Match host block for a specific host, and check whether any global config file sets WarnWeakCrypto to a value other than the default.

OpenSSH pq page

Scripts that fail on warning text

The warning is printed to stderr, so a job that treats any stderr output as a failure, or that greps output for error strings, will start failing once the warning appears on a new client version. This happens in CI pipelines, backup jobs and deployment scripts that wrap ssh or git. The fix is to match exit codes and specific error messages rather than the presence of any output. Check your scripts for stderr handling and for any pattern that matches the word WARNING, and test them against a client that prints the warning before you rely on them.

Older clients cannot negotiate newer exchanges

A server that offers a post-quantum key exchange first can still fall back to a classical one when the client does not support the post-quantum algorithm, so the connection succeeds but the warning remains. In the other direction, a client that is pinned to an old set of algorithms may fail to connect to a server that has removed its classical options. Check the OpenSSH version on each client with ssh -V, and use ssh -Q kex to list the key exchange algorithms that client supports before you change server settings.

Mismatched settings across hosts

When one host has a pinned KexAlgorithms line and another uses the default, users see different behavior depending on which host they connect to, and the warning appears on some servers but not others. This makes problems hard to reproduce and easy to misattribute. Use ssh -G to print the effective client configuration for each host after Host and Match blocks are evaluated, and compare the kexalgorithms line across the hosts you manage. Use ssh -v for debugging messages when a specific connection behaves differently.

When the SSH warning needs outside help across many hosts

Bring in help when fixing the warning stops being a single configuration change and becomes a coordinated program across many hosts. For one or two servers, an administrator can run ssh -V, list offered algorithms with ssh -Q kex, check whether a KexAlgorithms line in sshd_config has disabled a post-quantum option, and upgrade the server. Across an estate, the same steps multiply, and the harder questions are inventory and ownership: which hosts exist, which OpenSSH version each one runs, who owns each one, and which of them sit behind change windows or vendor agreements. An outside team can help build that inventory, group hosts by what fixes them, and sequence the work so that no host is changed without a rollback path.

Several situations make outside help more valuable. Servers running a release older than 9.0 cannot offer sntrup761x25519-sha512 at all, and the OpenSSH post-quantum page treats 9.9 and later as the release that offers mlkem768x25519-sha256, so a fleet with a mix of old versions needs a plan for upgrading, replacing or isolating each group. Appliances, managed services and hosted Git or file transfer endpoints are another category: the team may not control the OpenSSH version at all, and the right step is a vendor question about post-quantum key exchange support and a dated answer, not a server edit. Confirm each vendor's current position in writing, since the facts available for this page do not say what individual vendors have published.

Regulated environments need documented evidence, not only changed servers. A scoping call with DeployOpen would typically cover the estate inventory and version data, the classes of host (self-managed servers, appliances, managed services), where KexAlgorithms overrides or WarnWeakCrypto settings already exist, which hosts need a change window, what evidence an auditor or customer will ask for, and how the work would be verified afterward. Ask for the scope, deliverables and timeline in writing before work starts. DeployOpen does not publish prices, so the cost components and what drives them are part of what the call clarifies.

Common questions about the SSH post-quantum key exchange warning

Is my SSH connection still encrypted when I see this warning?

Yes. The warning says the connection is not using a post-quantum key exchange algorithm. It does not say the session is unencrypted or that the traffic is readable today. The OpenSSH warning text states that the session "may be vulnerable to 'store now, decrypt later' attacks," which describes a risk to data captured now and decrypted later, once cryptanalytic capability exists. The key exchange is the step that sets up session keys, so the risk concerns how those keys were agreed. To confirm what your own session negotiated, run ssh -v against the host and read the key exchange line in the output, or check the server's offered list with ssh -Q kex. The sources on this page do not describe any specific attack that is possible today against a session using a classical key exchange.

Is the SSH post-quantum warning urgent?

The sources describe the warning as a signal about future risk, not an immediate break. OpenSSH 10.1 added the warning, and its release notes give the reason as the risk of "store now, decrypt later" attacks. That threat matters most for data that must stay confidential for many years. For a server that carries short-lived or low-sensitivity sessions, the timing is less pressing than for systems holding long-lived secrets or regulated records. Whether it is urgent for you depends on how long the data you send over SSH needs to remain confidential, and that is a judgment your security team should make. Planning the upgrade is reasonable; treating it as an emergency is not something the sources support.

Can I ignore the SSH post-quantum warning or silence it?

You can silence it on the client, but silencing does not change the connection. The OpenSSH pq page suggests disabling it selectively, for example by setting WarnWeakCrypto no-pq-kex inside a Match host block for a specific host, which disables only the warnings about connections without a post-quantum key exchange. The WarnWeakCrypto no setting disables all weak crypto warnings, which removes more than this one. Hiding the message leaves the key exchange unchanged, so the exposure described by the warning remains. Silencing is most defensible as a short-term choice for a known host while the server is being upgraded. Record the decision and revisit it. Your security team should decide whether the trade-off is acceptable.

Why am I seeing the SSH post-quantum warning now?

The warning appeared because the OpenSSH client began printing it. OpenSSH 10.1, released on 2025-10-06, added a warning to ssh(1) when a connection negotiates a key agreement algorithm that is not post-quantum. Earlier versions did not print it, so the same connection may have been silent before you upgraded the client. The message did not appear because the server or the connection changed. To confirm, run ssh -V to see your installed version. The OpenSSH 10.6 release notes add a matching WarnWeakCrypto setting to sshd_config, enabled by default, so the server side can also log when a client uses a non-post-quantum scheme.

What should I do if I cannot upgrade the SSH server?

Start by checking whether the server already supports a post-quantum algorithm that is disabled. The OpenSSH pq page says that if the server supports one, you should check whether its KexAlgorithms option has turned it off. If the server cannot be upgraded, the sources do not describe a supported workaround that makes the connection post-quantum. You can confirm the server's offered algorithms with ssh -Q kex on a machine with the same client, and you can see what your client selects with ssh -v. Options include limiting the exposed data, restricting the host to trusted networks, scheduling the upgrade, and documenting the accepted risk. Confirm the server's version and offered list with its administrator before deciding.

Which OpenSSH versions support a post-quantum key exchange?

The OpenSSH pq page says that servers version 9.0 and later support sntrup761x25519-sha512, and servers version 9.9 and later support mlkem768x25519-sha256. The ideal fix is to upgrade the server to a version that supports at least one post-quantum algorithm. The ssh_config manual, dated November 29, 2026, lists mlkem768x25519-sha256 and sntrup761x25519-sha512 at the top of the default KexAlgorithms list. Whether a given server offers these depends on its version and its configuration, so run ssh -Q kex against your build or check the server's own output before assuming support. Check the vendor or distribution documentation for packaged builds that differ from upstream OpenSSH.

Should I get outside help with the SSH post-quantum warning?

Consider outside help when the server is shared, managed by a vendor, or carries sensitive data across many systems. Operators of a single server with clear configuration access can often do the checks themselves: confirm the version with ssh -V, list offered algorithms with ssh -Q kex, and review KexAlgorithms for any disabled post-quantum entry. Teams that run many hosts, rely on appliances or hosted services, or must document their posture for an assessment may want help planning the inventory and the upgrade order. DeployOpen can plan, implement and document SSH server upgrades and configuration within a client's own infrastructure, on a fixed scope agreed in writing. A quote follows from that scope. Ask any provider to confirm the exact versions and configuration they will change.

Does the SSH post-quantum warning mean my key or certificate is unsafe?

No. The warning concerns the key exchange algorithm, which sets up session keys for encrypting the connection. It does not say your host key, user key or certificate is weak. Key exchange and signatures are separate parts of SSH, and the OpenSSH pq page notes that post-quantum signature algorithms will be added in the future without giving a timeline. OpenSSH 10.6 enabled the hybrid signature algorithm ssh-mldsa44-ed25519, but that is a signature change, not a fix for this key exchange warning. Do not replace keys in response to this warning alone. Confirm with the OpenSSH documentation which of your keys and certificates are affected by any future signature change.

How DeployOpen works on this

DeployOpen works with your team to find which SSH servers, clients and libraries trigger the OpenSSH post-quantum key exchange warning and which side of each connection needs to change. We scope the work in writing, make the configuration changes you agree to, and hand over a record of what was checked and changed. Ongoing support is available as a retainer.

How we scope

  • We list the SSH endpoints in your estate and note which OpenSSH versions each one runs.
  • We record which hosts show the warning and whether the server or the client is the side to change.
  • Engagements are fixed-scope, and the written scope names the hosts, deliverables and timelines covered.

How we build

  • We run ssh -V and ssh -Q kex on each server and client to confirm the installed version and offered algorithms.
  • We check whether KexAlgorithms in the server configuration has disabled a post-quantum algorithm the server supports.
  • We apply configuration changes, and where a server cannot be upgraded, we set host-specific WarnWeakCrypto values only after you approve them.

How we hand over

  • We provide a written record of each host's OpenSSH version, offered key exchange algorithms and remaining warnings.
  • We document every configuration change, including any WarnWeakCrypto no-pq-kex exceptions, with the reason it was made.
  • We confirm the handover by rerunning ssh -v checks against the hosts in scope, so your team can repeat them.

How we support

  • Ongoing support and upgrades can be arranged as a retainer after the initial handover is complete.
  • Retesting after OpenSSH upgrades, such as the 10.6 release that adds WarnWeakCrypto to sshd_config, can be included in a retainer.
  • Ask any quote to state what is one-time, what recurs and which hosts or versions drive the effort up or down.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.