Who has to act on the SSH post-quantum warning, user or server operator

The warning is raised by the ssh client, but the fix usually sits with whoever runs the SSH server. This page shows how to tell which side has to act and how to check each end.

On this page

Does the SSH post-quantum warning mean my session is unsafe right now?

If you are seeing the warning from a terminal or Git command and wondering whether the session you just opened is compromised, the short answer is no. The ssh client prints the warning when the key exchange it negotiated with the server is not post-quantum, and the server side usually has to change before the warning goes away. The OpenSSH project publishes the warning as three lines: " WARNING: connection is not using a post-quantum key exchange algorithm.", " This session may be vulnerable to "store now, decrypt later" attacks." and "** The server may need to be upgraded. See The warning is printed by the client program, so it tells you about the connection you just made, not about a fault in your machine.

The session is still encrypted. What the warning flags is a risk that an attacker who records the traffic today could decrypt it later, once a quantum computer able to break the current key exchange exists. That is the "store now, decrypt later" scenario named in the second line. Whether this matters to you depends on how long the data you send over SSH must stay confidential. A password rotated next week carries little exposure, while source code, customer records or credentials that stay sensitive for years carry more. The warning does not mean an attacker is active on your connection today, and it does not mean the server has been breached.

Urgency therefore varies with the data, not with the warning itself. For a personal machine or short-lived work, you can usually note the warning and plan a fix on the server's next maintenance window. For regulated or long-lived data, ask the team that runs the server whether it offers a post-quantum algorithm and when it will be enabled. Confirm this with that team rather than assuming. You can check your own client version with ssh -V and list what your client supports with ssh -Q kex, but the server's effective setting is shown only to its operators, who can check it with sshd -T.

Which side of the connection has to act on the warning?

The SSH warning is raised by the client program, but the fix depends on where the key exchange is set. Each party below controls a different part of the negotiation, so the first step is to identify which of them owns the server, the client or the library in your connection.

The person typing ssh

This is the user running ssh on a workstation. The warning is printed by the local client, so the client version and any ssh_config settings sit with this person. Run ssh -V to see the OpenSSH version and ssh -Q kex to list the key exchange algorithms the local client supports. Check for a WarnWeakCrypto line in ~/.ssh/config that may have been set to hide the warning. Updating the local client helps only when the server already offers a post-quantum algorithm, so a newer client alone will not clear the warning if the server is the limiting side.

ssh_config manual

The operator who runs the SSH server

This is the team that controls the server's OpenSSH version and sshd_config. The ideal fix on the OpenSSH project page is to update the server to a version that supports at least one post-quantum algorithm, either sntrup761x25519-sha512 from OpenSSH 9.0 or mlkem768x25519-sha256 from OpenSSH 9.9. If the server already runs one of those versions, check whether a KexAlgorithms line has removed them. Run sshd -T to view the effective value. The OpenSSH 10.6 release notes state that the server-side WarnWeakCrypto option is enabled by default and logs clients that use a non-post-quantum key agreement.

OpenSSH PQ page

The administrator of a hosted Git or file service

Administrators of hosted Git or file transfer services usually cannot edit the server's sshd_config directly, so the question is what the provider runs and what configuration it exposes. Ask the provider which OpenSSH version is deployed and whether it offers a post-quantum key exchange by default. Developers who see the warning during clone, fetch or push are usually connecting to this service rather than running their own server. Document the provider's answer so that users know whether the warning reflects the service or their own client.

The vendor of an appliance or client library

Network appliances, managed file transfer products and programming libraries bundle their own SSH implementation, so the version that matters may not be the system OpenSSH. Confirm with the vendor which SSH implementation and version the product uses and whether its key exchange list includes a post-quantum algorithm. Ask whether the product exposes a setting equivalent to KexAlgorithms or WarnWeakCrypto, and whether an update is planned. Record the vendor's answer, because a library that does not offer post-quantum key exchange cannot be fixed by the operator alone.

How to check where the warning originates

This sequence shows whether the warning comes from the client you are using or from the server you are connecting to. Each check produces a result that tells you which side of the connection has to change, and whether the server's KexAlgorithms setting is limiting the key exchange.

  1. Get the client's OpenSSH version

    Run ssh -V in the terminal where you see the warning. The command prints the OpenSSH version number and exits, and you can check it against the release list on the OpenSSH post-quantum page. Note the version, because the sshd and client behavior described on that page depends on it. This step is done when you have a version string such as the one your system reports, and you can read it without any other output from the command.

  2. List the client's key exchange algorithms

    Run ssh -Q kex to list the key exchange algorithms your local client supports. Look for post-quantum names in the output, such as sntrup761x25519-sha512 and mlkem768x25519-sha256. If neither appears, the client cannot offer a post-quantum key exchange, and the warning can be fixed only by upgrading the client. This step is done when you have the full list and have checked it for those names.

  3. Record the negotiated key exchange

    Connect to the host with ssh -v and read the debug output. The client logs the chosen algorithm in the form kex: algorithm: <name>. If the name is a post-quantum algorithm, the warning is probably coming from a different connection or host, and you should check that host instead. If the name is classical, the server did not select a post-quantum option from the offered list. This step is done when you have the exact algorithm name from the session.

  4. Read the server's effective KexAlgorithms

    An operator with access to the server runs sshd -T and reads the kexalgorithms line from the effective configuration. This output shows the values in use after all configuration files are applied, not only what the main file says. Compare the list to the defaults in the sshd_config manual, which include the post-quantum names. This step is done when the operator has the effective list in hand.

  5. Check the server version and KexAlgorithms

    Confirm the server's OpenSSH version. The OpenSSH project says servers running 9.0 or later can offer sntrup761x25519-sha512, and servers running 9.9 or later can offer mlkem768x25519-sha256. If the server runs one of those versions and the effective kexalgorithms line omits the post-quantum names, a disabled or narrowed KexAlgorithms setting is the likely cause, and that setting is the server operator's to change. This step is done when you know whether the version supports the names and whether the setting removes them.

  6. Decide who acts on the result

    If the client lacks post-quantum support, the user or client owner has to update the client or its library. If the server is older than the required versions or its effective KexAlgorithms excludes the post-quantum names, the server operator has to act. If both sides support a post-quantum option and the warning still appears, confirm the host and session in the ssh -v output before making changes. This step is done when you have named the party responsible for each part of the warning.

Which side changes after the warning appears

The warning is printed by the ssh client, so the check starts on the server and then moves to the client. First, check whether the server offers a post-quantum algorithm such as mlkem768x25519-sha256 or sntrup761x25519-sha512. If it does, check whether a KexAlgorithms setting has disabled it. If the server does not offer one, the server needs an upgrade, and the client should be checked for current OpenSSH as well. A client-side WarnWeakCrypto setting hides the message but does not change the key exchange.

Decision path from the warning to a server upgrade or a client-side check.

Which situations trigger the warning and who acts in each

This table lists the common situations that produce the SSH post-quantum warning and names the party responsible for each. Read the server version and KexAlgorithms setting first, because they decide whether the fix belongs to the server operator or to the user. The main takeaway is that a user cannot fix a server that offers no post-quantum option, and a server operator cannot fix a client that overrides the server's preferences.

SituationWhat it looks likeWho has to act
Server runs OpenSSH 9.0 or later with post-quantum algorithms enabledThe server offers sntrup761x25519-sha512 or mlkem768x25519-sha256, but the client still negotiates a classical algorithm or the client's list excludes themUser or client admin: check the client's KexAlgorithms and ssh -Q kex output
Server offers post-quantum algorithms but KexAlgorithms disables themThe server's effective configuration, shown by sshd -T, leaves out the post-quantum algorithmsServer operator: edit sshd_config and remove the restriction
Server runs an older OpenSSH version with no post-quantum optionThe server version predates OpenSSH 9.0, so no post-quantum key exchange is available to negotiateServer operator: upgrade the SSH server software
Client sets its own KexAlgorithmsThe client's ssh_config or command line limits the key exchange list to classical algorithmsUser: change or remove the client's KexAlgorithms entry
Server is a managed or hosted serviceThe user cannot read the server configuration or upgrade its softwareService provider: confirm the server's version and offered algorithms
Client has WarnWeakCrypto set to no-pq-kex or noThe warning is hidden on the client, though the key exchange has not changedUser: decide whether hiding the warning is acceptable for this host
Server runs OpenSSH 10.6 or later with WarnWeakCrypto enabledThe server logs connections that use a classical key exchangeServer operator: review the server logs and confirm which clients connect

What each role should do when the warning appears

The warning is printed by your local ssh client, so the first question is whether you run the server or only connect to it. If you only connect to servers you do not administer, the fix belongs to the team that runs those servers, and your task is to confirm your own client is current and report the host. Start by running ssh -V to see the OpenSSH version on your machine, then run ssh -Q kex to list the key exchange algorithms your client supports.

  • Check your version: Run ssh -V and compare the version number with the OpenSSH release notes.
  • List client algorithms: Run ssh -Q kex and confirm a post-quantum option such as mlkem768x25519-sha256 appears in the output.
  • Inspect the handshake: Run ssh -v host and look for a line in the form kex: algorithm: <name> to see what was negotiated.
  • Report the host: If the negotiated algorithm is not post-quantum, send the host name to the team that operates it.
  • Avoid silencing alone: Do not add a WarnWeakCrypto no-pq-kex entry to your config as a substitute for the server fix.

Confirm that your client supports a post-quantum option and that the negotiated algorithm for your host is the one you expect before you report or close the issue.

What can go wrong when people react to the warning

The warning is easy to make go away, and that is the problem. Each of the four risks below can leave a connection looking fixed while the key exchange stays the same, or it can break scripts that were working. Check the effective server and client settings before you silence, pin or automate around the message.

Silencing the warning with no-pq-kex

Setting WarnWeakCrypto no-pq-kex in ssh_config removes the warning for matching connections, but the ssh client still negotiates the same key exchange as before. The message disappears and the session is no more protected. Use this only as a short-term choice for a host you cannot yet upgrade, and write down that the host was left as it was. Check the result with ssh -v to confirm which algorithm was chosen.

ssh_config manual

Hiding the warning per host with Match

A Match host block that sets WarnWeakCrypto no-pq-kex silences the warning for one host name only. It does not change which key exchange is used, so the exposure to store now, decrypt later attacks is unchanged. The block is easy to forget, and a later reader may assume the host was fixed. Record each block with the reason and the date it was added, and check whether the host still needs it when the server is upgraded.

OpenSSH PQ page

Pinning an old KexAlgorithms list

A client or server that pins a KexAlgorithms list written before post-quantum options existed will never offer them, even when the software supports them. The warning then persists after an upgrade, and operators may wrongly conclude the upgrade failed. The sshd_config manual gives the default list, which includes mlkem768x25519-sha256 and sntrup761x25519-sha512. Compare any pinned list against the defaults, and check the effective value with sshd -T on the server.

sshd_config manual

Automation that treats the warning as an error

Scripts, CI jobs and deployment tools that treat any text on stderr as a failure can stop working when the warning appears, even though the connection succeeded. The warning is printed through the same logging path as errors, so a pipeline that checks for output may fail on a host that is otherwise fine. Test the job against a host that shows the warning, and decide explicitly whether the warning should pass, fail or be filtered. Filtering should match the exact warning text, not a broader pattern.

OpenSSH sshconnect.c

Server logs from sshd WarnWeakCrypto

OpenSSH 10.6, released 2026-10-06, added the WarnWeakCrypto option to sshd_config, and the release notes say it is enabled by default. The server then logs when a client uses a key agreement scheme that is not post-quantum safe. Operators who forward or alert on server logs may see a new stream of entries from clients they do not control. Check the logging rules before a server upgrade, and decide whether to set the option to no or to act on the entries.

OpenSSH 10.6 release notes

Common questions after seeing the SSH post-quantum warning

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

Yes. The warning does not mean the connection is unencrypted. It means the key exchange that set up the session did not use a post-quantum algorithm. The OpenSSH warning text says the session "may be vulnerable to 'store now, decrypt later' attacks," which concerns traffic recorded today and decrypted later with a future quantum computer. Your session is still encrypted in the normal way, so keep using it while you find out who owns the fix. Confirm the exact wording and the OpenSSH version in your own environment, because the message text can differ between builds.

Is the SSH post-quantum warning urgent for me?

Usually it is a planning item, not an emergency. The warning is about data sent over SSH being recorded now and decrypted later, so the real question is how long the data you send must stay confidential. Session traffic that is only useful for hours does not carry the same exposure as data that has to stay secret for years. Decide the priority with your security team by looking at what the connection carries. The sources here do not give a deadline for when a server must offer a post-quantum algorithm, so do not invent one. Check your organization's own migration plan and any contract or federal requirement you are subject to.

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

You can hide it, but hiding it does not change the key exchange. OpenSSH's client setting WarnWeakCrypto accepts a no-pq-kex flag that turns off only this warning, and the OpenSSH project page shows a Match host block that applies it to one host. Hiding the message on a client is a short-term choice, and it leaves the session as exposed as before. Turning it off also means you stop seeing the reminder that the server needs an upgrade. Keep the warning visible for hosts you manage, and only silence it deliberately, with a note of why and an end date. Check the ssh_config manual for the exact syntax your version supports.

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

The warning is produced by the ssh client program, not by the server. OpenSSH's sshconnect.c calls the warning function only when the key exchange in use is not post-quantum, the WarnWeakCrypto option is enabled, and the key exchange is not one the client classes as post-quantum. Newer releases make it visible more often: OpenSSH 10.6, released 2026-10-06, added WarnWeakCrypto to sshd_config(5) and enables it by default, so servers can now log when a client uses a key agreement scheme that is not post-quantum safe. If the warning appears after an update, that change is the likely reason. Check your client version with ssh -V.

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

Start by checking whether the server already supports a post-quantum algorithm. The OpenSSH project says the ideal fix is a server running at least one of sntrup761x25519-sha512 (from OpenSSH 9.0) or mlkem768x25519-sha256 (from OpenSSH 9.9). If the server is already on one of those versions, check whether the KexAlgorithms option has disabled them. Run sshd -T on the server to print the effective configuration. If you truly cannot upgrade, the sources do not describe a supported workaround beyond silencing the client warning, so record the risk, limit what the connection carries, and plan the upgrade with the team that owns the server.

Who has to act on the SSH post-quantum warning, me or the server team?

It depends on where the fix lives. If your client is old and the server already offers a post-quantum algorithm, you can update the client yourself. If the server does not offer one, or its KexAlgorithms setting removes the post-quantum options, the change belongs to whoever runs the server. Run ssh -Q kex to list what your client supports and ssh -v to see the algorithm your connection chose, logged as kex: algorithm:. Those two checks tell you which side is missing support. Send the server owner the output, so they can see the gap without reproducing it.

Should I ask an outside firm for help with the SSH warning?

Consider outside help when the server fleet is large, when the warning touches automated jobs or partner connections, or when you need evidence for an assessment. DeployOpen plans and implements post-quantum readiness work on the platforms organizations run in their own infrastructure, and it prepares evidence for compliance reviews, but it does not issue audit reports or certifications. Ask for a written, fixed scope that names the servers, the configuration checks and the retest. Cost depends on the number of hosts, the state of their configuration and how many teams must agree on changes, so ask for those drivers in any quote.

When to bring in outside help with the SSH warning

Bring in outside help when the warning spans more hosts than your team can check by hand, or when the server behind it cannot be upgraded. Across a fleet, the server operator needs an inventory of every sshd instance, its OpenSSH version, and the effective KexAlgorithms value from sshd -T, since a single KexAlgorithms line in a shared configuration can disable post-quantum key exchange on many machines at once. Older servers, network appliances and vendor-managed devices may not run OpenSSH 9.0 or later at all. In those cases the choice is between a vendor firmware update, a replacement, or isolating the device, and that decision usually needs people who can speak to the vendor and to the change process, not just the person who typed the command. Confirm the minimum version your vendor supports before you assume an upgrade path exists.

Managed services bring a second layer of responsibility. If your Git hosting, file transfer or cloud SSH endpoints are run by a provider, the server-side fix is theirs, and your job is to ask what key exchange they offer, whether post-quantum options are enabled by default, and when that changes. Write those answers down, because partners and automated jobs will keep reporting the warning until the provider acts. Ask whether the provider's WarnWeakCrypto setting is on, since OpenSSH 10.6 enables the sshd option by default and logs clients that use a key agreement without post-quantum protection. That log is evidence you may need to show a customer or auditor.

Regulated environments need documented evidence, not just a working connection. If an assessor or customer asks how you dealt with the warning, you will need a dated record of which hosts were checked, the algorithms each one offered, any client-side suppression you chose, and who approved it. Involve your compliance and security leads before anyone hides the warning across a fleet, because a per-host WarnWeakCrypto no-pq-kex setting leaves the underlying exposure in place. For the detailed steps, see the pages on checking the server's algorithms, suppressing the warning on the client, and handling it in Git output.

How DeployOpen helps clear the SSH post-quantum warning across an estate

The warning is raised by the ssh client, but whether it clears depends on the server's KexAlgorithms setting and on the OpenSSH version each side runs. DeployOpen scopes that split for your estate in writing before any change is made, so each team knows which hosts they own and what to check on each.

How we scope

  • We list which hosts run an SSH server and which users or jobs connect to them, so the server operators and client owners are named.
  • We record each server's OpenSSH version and effective KexAlgorithms value, using sshd -T, to separate servers that need an upgrade from those that need a setting fix.
  • Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we build

  • We check that each server offers mlkem768x25519-sha256 or sntrup761x25519-sha512 and that KexAlgorithms has not disabled them.
  • We confirm client behavior with ssh -v and ssh -Q kex on representative workstations and automated runners, using the logged kex algorithm line.
  • We update OpenSSH where a server predates the post-quantum algorithms, testing changes on a non-production host first.

How we hand over

  • We deliver a host-by-host record showing each server's version, offered key exchange algorithms and the owner responsible for it.
  • We document which user-side warnings remain and whether they are expected, so client owners do not treat them as server faults.
  • We record any client-side silencing choices, such as no-pq-kex, with the reason and the hosts they cover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the initial changes are in place.
  • We re-run the server checks after OpenSSH upgrades, including the WarnWeakCrypto default change in OpenSSH 10.6.
  • We confirm that the warning clears on each host and that the handover record matches the live configuration.

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.