What the SSH post-quantum warning means on your server
The OpenSSH client (ssh) from version 10.1 onward prints this warning when the key exchange it negotiated with your server was not post-quantum. To clear it, the server operator has to act: the server must offer a post-quantum key exchange and must not have it switched off by configuration. The client user usually cannot fix this alone, although the client can be told to suppress the message, which is covered elsewhere on this page.
The warning describes the connection that was just negotiated, not the client in general. It is printed per connection, so the same client may show it for one server and not another, depending on what each server offered. The session itself stays encrypted under the classical key exchange the two sides agreed on. The warning does not mean the connection is open to eavesdropping today, and it does not mean the data was exposed. It means the key exchange used for that session is not one designed to resist a future quantum computer.
Whether this is urgent depends on the data and on your organization's requirements. Sessions that carry data with a long confidentiality lifetime, or that fall under a policy or contract requiring post-quantum protection, need a dated plan to move to a supported server. Confirm with your security or compliance owner what your requirements are before choosing a timeline. To see what a server actually negotiates, run ssh -v user@host and look for the kex: algorithm: line, as described below on this page.
Who on the server side has to act
The warning appears on the client, but the fix sits in different places depending on who runs the server and who makes the connection. Before changing anything, work out which of the three roles below you hold, because each can change a different set of settings.
The server operator
The operator controls the OpenSSH version on the host and the sshd_config file, so this role can make the server offer a post-quantum method. Check the version with sshd -V, then run sshd -T to read the effective configuration. Look for a KexAlgorithms line in the file or an included file. If that line omits the post-quantum names, or uses a bare list that replaces the default, the server will not offer them. Removing the override or adding + entries restores the default set, which starts with mlkem768x25519-sha256. Confirm the result with sshd -T before restarting the service.
The client user
A user connecting to someone else's server can see the warning and can set options on their own machine, but cannot change the server's key exchange list. Client-side options can be set in ssh_config or passed with -o, and ssh -G host shows the result for a given host. A client setting cannot make a server offer a post-quantum method it does not support. The user can only report the warning to the server's operator, or accept it and decide whether to hide it on their own client.
The hosted service administrator
An administrator of a hosted Git or file transfer service can change only what the vendor exposes in its admin console or API. Server-side sshd_config edits are usually unavailable on these platforms. Ask the vendor whether its SSH endpoint offers a post-quantum key exchange, and in which version. The sources supplied for this topic do not say what any specific vendor offers, so confirm that with the vendor directly rather than assuming it from this page.
Who to ask first
Start by finding out who runs the server the warning points to. If you can edit sshd_config, you are the operator and the checks above apply to you. If you only see the warning and cannot change the server, send the server's operator or vendor the output of ssh -v showing the kex: algorithm: line. That line identifies which method was negotiated, so the operator can check their configuration without a back-and-forth.
How to check which key exchange your SSH server offers
This sequence confirms the server version, reads the key exchange list the server actually uses, and then checks the negotiated result from a client connection. Together the steps show whether the server offers a post-quantum method and whether the warning should clear.
Confirm the installed sshd version
Run
sshd -Von the server as an administrator to print the OpenSSH version and exit. This confirms whether the installed build is one that supports a post-quantum key exchange. The OpenSSH PQ page identifies mlkem768x25519-sha256 as available from OpenSSH 9.9 and sntrup761x25519-sha512 from 9.0, so a version older than those means the server cannot offer those methods until it is updated. You are done when the version number is recorded.Read the effective KexAlgorithms setting
Run
sshd -Ton the server to print the effective configuration after reading the configuration file. Look for thekexalgorithmsline in the output. If anyMatchblock in the configuration applies to the connections you care about, add-Cwith a connection specification such as-C user=alice,host=example.com,addr=192.0.2.10so those rules are evaluated. You are done when you can see whether the list includes mlkem768x25519-sha256 or sntrup761x25519-sha512.Check for explicit KexAlgorithms overrides
Compare the
kexalgorithmsline fromsshd -Twith the default set documented in the sshd_config man page. A value that begins with+adds to the defaults, one that begins with-removes entries, one that begins with^moves entries to the front, and a plain list replaces the default entirely. A plain list that omits the post-quantum names will trigger the warning even on a current server. You are done when you know which form the setting takes and whether a post-quantum name is present.Read the negotiated algorithm from a client connection
From a client machine, run
ssh -v user@host(or-vvor-vvvfor more output) against the server. Look for the debug line beginningkex: algorithm:, which names the key exchange method that was actually negotiated. This reflects both sides, so it shows the result for this client and server pair. You are done when that line is captured for the connection you tested.Read the server's offered list at debug2
Repeat the connection with
ssh -vv user@hostand find the proposal lines that includeKEX algorithms. The peer proposal shows what the server offers, and the local proposal shows what your client offers. Confirm that the server list contains a post-quantum name. You are done when you have seen the server's proposal and checked it for mlkem768x25519-sha256 or sntrup761x25519-sha512.Understand what ssh -Q kex shows
Running
ssh -Q kexon the client prints the key exchange algorithms that the local ssh build supports. It does not query the server, so it cannot tell you what a remote host offers. Use it only to confirm the client side is capable. The server check in the previous steps is the one that determines whether the warning should clear. You are done when you have recorded that the output describes the client alone.
Why the server negotiates a classical key exchange
This table maps each common cause of a classical-only key exchange to the setting that produces it and the change that fixes it. Read each row by checking the server version first, then the KexAlgorithms line, then any client restriction or Match block, and confirm the result with the "kex: algorithm:" line from ssh -v.
| Cause | How it shows up | Fix |
|---|---|---|
| Server older than OpenSSH 9.0 | sshd -V reports a version before 9.0, so no post-quantum method is offered | Update OpenSSH on the server to a release that supports a post-quantum algorithm |
| Server 9.0 to 9.8 without the 9.9 method | sshd -V shows 9.0 or later, but mlkem768x25519-sha256 is not in the offered list, so only sntrup761x25519-sha512 can be negotiated | Confirm sntrup761x25519-sha512 is offered with sshd -T, and update to 9.9 or later to add mlkem768x25519-sha256 |
| KexAlgorithms line omits the post-quantum names | sshd -T shows a kexalgorithms list with no mlkem768x25519-sha256 or sntrup761x25519-sha512 entry | Remove the explicit list, or add the post-quantum names to it, then reload sshd |
| KexAlgorithms with a leading minus sign | A value beginning with - removes algorithms from the default set, so a pattern that matches the post-quantum names strips them | Edit the directive so the post-quantum names remain, or use + to append to the default set |
| Client-side ssh_config restriction | ssh -G host shows a KexAlgorithms value without the post-quantum names, or a -o KexAlgorithms override is in use | Remove the restriction from ssh_config or the command line so the default set applies |
| Match block changes the list for one host or user | sshd -T -C with the matching user, host or addr shows a different kexalgorithms list than the global configuration | Review the Match block in sshd_config or ssh_config and correct the list it sets for that host or user |
| Client restricts the list in ssh -Q kex output | ssh -Q kex on the client lists no post-quantum names, so the client cannot offer them whatever the server supports | Install a client build that includes the post-quantum methods, then recheck with ssh -Q kex |
What to change on the server, in order
This sequence moves the server to a post-quantum key exchange that clients can negotiate, so the warning stops appearing for connections to it. Each step ends with a check that confirms the change took effect before you move on.
Check the installed OpenSSH version
Run
sshd -Von the server to print the installed version and exit. The post-quantum method mlkem768x25519-sha256 requires OpenSSH 9.9 or later, and sntrup761x25519-sha512 requires OpenSSH 9.0 or later, so note which of those thresholds the server meets. If the version is older than 9.0, the server has to be upgraded before any configuration change can add a post-quantum method. The server administrator does this step, and the output ofsshd -Vshows the version you are working with.Upgrade OpenSSH to a supporting release
Upgrade the OpenSSH server package through your operating system's package manager or the vendor's update channel, aiming for 9.9 or later so that mlkem768x25519-sha256 is available, or at minimum 9.0 for sntrup761x25519-sha512. Confirm the exact package names and upgrade path in your distribution's or appliance vendor's documentation, since they differ by platform. The server administrator does this work. It is done when
sshd -Vreports a version at or above the chosen threshold.Review the KexAlgorithms line in sshd_config
Open the server configuration file, which is
sshd_configin most installations, and search for anyKexAlgorithmsline. If none exists, the default list includes the post-quantum names, so no change is needed here. If one exists, it must either keep the post-quantum names or use a+or^prefix so that they are added to or placed at the head of the default set, instead of an explicit list that omits them. An explicit list without those names keeps the warning in place. Make the edit in the file, then save it. The administrator performs this review.Check Match blocks with sshd -T
Match blocks can override the global
KexAlgorithmsvalue for particular users, hosts or addresses, so check them separately. Runsshd -T -C user=<name>,host=<host>,addr=<address>with connection details that match the affected clients, and confirm the printedkexalgorithmsline includes the post-quantum names. Repeat for each distinct Match condition in the file. The administrator runs these checks, and the step is complete when every relevant connection specification shows a post-quantum method in the effective list.Validate the configuration before reloading
Run
sshd -tto test the configuration file for syntax errors before the service is changed, since an invalid file can stop the daemon from starting. Fix any reported errors and rerun the test until it exits without output. The administrator performs this check. It is done when the test returns cleanly.Reload sshd and confirm the new exchange
Reload the SSH daemon with your init system, for example
systemctl reload sshdon systemd hosts, so the new settings apply without dropping existing sessions. From a client, runssh -v user@hostand look for the debug linekex: algorithm:to confirm it names a post-quantum method. If it does not, return to the earlier checks and verify the effective configuration withsshd -T. This step is done when a connection shows the post-quantum name in that line.
How the fix differs by installation method
On a Linux or BSD host where OpenSSH was installed through the operating system's package manager, the server binary and its default configuration come from the distribution's packages. The post-quantum key exchange methods appear only in OpenSSH builds that support them, so the first question is whether your installed sshd is new enough. The sshd_config keys discussed on this page work the same way regardless of how the package was installed, so you change the same settings wherever the server runs. Your distribution's package repository, not OpenSSH itself, decides which version you receive, so the upgrade path is set by that repository.
- Check the installed version: run
sshd -Von the server and compare it with the OpenSSH release notes for the version that added the post-quantum methods. - Upgrade through the package manager: use the normal update tool for your distribution, and confirm with the distribution's documentation which package carries the OpenSSH server.
- Review the KexAlgorithms line: an explicit list in
sshd_configor an included file insshd_config.dmay override the default, so check both. - Restart the service after changes: a running sshd keeps its old configuration until it is restarted or reloaded.
- Confirm the distribution's version: do not assume a release number. Ask the distribution's maintainers which package version shipped for your release.
After the upgrade, verify with sshd -T and a client connection that the negotiated algorithm is post-quantum.
A container running sshd gets its OpenSSH build from the base image it was built on, not from the host. Changing the host's packages does nothing to a running container, and updating the host operating system may leave an old sshd inside an image untouched. The fix therefore sits in the image build: you rebuild from a base that ships a post-quantum-capable OpenSSH, then redeploy the container. The sshd_config keys are the same as on a package-managed host, but they live in the image or in a mounted configuration file, so check which copy the running process reads.
- Identify the image and its base: record the image name and tag currently running, and the base image it was built from.
- Check the version inside the container: run
sshd -Vin the running container, since the host's version does not apply. - Rebuild rather than patch in place: a change made inside a running container is lost when it is replaced, so update the Dockerfile or the base tag and rebuild.
- Mount or bake the configuration deliberately: confirm whether
sshd_configcomes from the image or from a volume, and that the KexAlgorithms setting in effect is the one you intend. - Redeploy and retest: after rollout, connect from a client and read the
kex: algorithm:line fromssh -v.
Check that every replica and every environment, including staging, runs a rebuilt image, since a mixed fleet can produce warnings from only some hosts.
Network appliances, storage systems and hosted SSH endpoints run a vendor's firmware or managed image, and the operating system and sshd are bundled with it. On these systems you generally cannot install a newer OpenSSH yourself, and attempting to edit files on the device may void support or be overwritten at the next update. The sshd_config keys still define the algorithm list where the vendor exposes them, but whether the underlying sshd supports the post-quantum methods is a question for the vendor. Your action is to establish the vendor's position, request the update, and record the answer.
- Find the firmware or service version: note the version shown in the device or service console, since the vendor's documentation maps it to the bundled SSH implementation.
- Ask the vendor directly: request a written statement of whether the current release offers post-quantum key exchange, and the release that adds it.
- Use only the exposed settings: where the management interface lets you set key exchange algorithms, change them there rather than editing system files.
- Track the update path: ask for the scheduled release date and any compatibility notes, because older clients may fail after the change.
- Document the exception if needed: if no update is available, record the risk and the planned replacement, and follow your organization's policy for accepted risk.
The settings and version numbers you need belong in the vendor's own documentation, so confirm them there and do not rely on this page for device-specific values.
How to confirm the warning has gone
After you change the server or client, confirm the fix with the same method you used to find the problem. Run ssh -v user@host from a client you control and read the debug output. Look for the line kex: algorithm: followed by the negotiated method. The fix is confirmed when that line names a post-quantum method, which the OpenSSH PQ page identifies as mlkem768x25519-sha256 (OpenSSH 9.9 and later) or sntrup761x25519-sha512 (OpenSSH 9.0 and later). If you see only a classical method such as curve25519-sha256 or an ecdh-sha2-nistp* name, the warning will still appear. Use -vv or -vvv if you want to see the full proposal lists the server sent.
On the server, rerun sshd -T to check the effective configuration, not just the file on disk. Look at the kexalgorithms line in the output. It should include the post-quantum names, and it should not be missing them because of a KexAlgorithms line that uses - or an explicit list without those names. If you used -C connection specs with Match blocks, repeat the check with the same -C values that a real client connection presents, since a match can change the result. On the client side, ssh -G host shows whether a KexAlgorithms setting in ssh_config removes the post-quantum methods before the connection is even attempted.
A single successful test is not enough, so watch for the warning in later sessions and from other clients. OpenSSH 10.6, released 2026-10-06, added the WarnWeakCrypto setting to sshd_config, enabled by default, which causes the server to log when a client uses a key agreement scheme that is not post-quantum safe. Check the server's logs after you deploy the change and confirm that new entries for your users have stopped. Ask a second user or a second client machine to connect, because the negotiated method depends on what both sides offer. Confirm the results against the OpenSSH release notes and the sshd_config man page for your installed version.
What can break when you change the key exchange list
Changing the KexAlgorithms list touches every client that connects to the server, including ones you do not run yourself. The risks below are the places where a changed list can cause a failed login, a broken job or a compliance finding, and each one needs a check before you change anything.
Older clients and devices
Clients built before the post-quantum methods existed may not offer any algorithm the server still accepts, so the connection fails at key exchange rather than showing the warning. Before you remove or reorder entries, list the client versions your users and partners run and confirm each one still has a shared algorithm with the server. The client side of this check is ssh -Q kex, which shows what a given build supports. Older network devices and embedded management tools are the most common cases where the list cannot be updated.
Automation and scripts
Scripts, deployment tools and scheduled jobs often connect with a fixed client that nobody has updated in years. A change to the server list can stop these jobs without any change on their side, and the failure may only appear at the next scheduled run. Inventory the jobs that open SSH sessions, note the client each one uses, and test one connection from each before the change goes live. Failures from these jobs often look like generic connection errors, so check the kex: debug lines with ssh -v to find the cause.
CI runners and pinned builds
CI runners often pin an older OpenSSH client in a container image or a base image that is rebuilt rarely. A runner pinned to a client without a post-quantum method will fail or fall back when the server list drops the classical methods it relies on. Check the client version on each runner image with ssh -V and run ssh -Q kex inside the image, not on your workstation. Where a runner image cannot change, keep the classical algorithms in the list for that connection rather than removing them globally.
Compliance and FIPS configurations
Systems run in a FIPS or other compliance mode may restrict which key exchange methods are allowed, so an algorithm that works on a general-purpose host may be refused there. Any change to KexAlgorithms on these systems needs review by the team that owns the compliance baseline before it is deployed. Record the current list, the proposed list and who approved the change, so that an assessor can see the decision. The sources listed on this page do not say which algorithms a given FIPS mode permits, so confirm that with your OS vendor's documentation and your assessor.
Explicit lists that omit new methods
An explicit KexAlgorithms value replaces the default set, so any post-quantum method you leave out is never offered, and the warning stays. A list copied from an old hardening guide is a common cause. To see what the server actually offers after your changes, run sshd -T and read the effective kexalgorithms line, applying any Match rules with -C. Compare that output with the default list in the sshd_config man page before you deploy.
Client-side overrides
A KexAlgorithms line in a user's or team's ssh_config can remove post-quantum methods on the client even when the server offers them, so a server change may not fix the warning for everyone. Run ssh -G host on a representative client to see the evaluated configuration, including any Match blocks. This check matters most when you manage a shared bastion or jump host, where many users connect through one configuration.
When to get help with the server change
Most of the time the fix is a change to the SSH server, not the client, and that change is not always within reach of the person who saw the warning. Get help when the server cannot be upgraded to an OpenSSH release that offers a post-quantum method, or when the server runs a version that supports one but a KexAlgorithms line in sshd_config or a Match block removes the mlkem768x25519-sha256 and sntrup761x25519-sha512 names. Your first step is to run sshd -V to confirm the installed version and sshd -T to read the effective configuration, including any -C connection specs that trigger Match rules. If the version is too old or the configuration is correct on paper but the negotiated kex: algorithm: line still shows a classical method, the problem may sit in a layer you do not control, and that is when a second pair of hands helps.
Other cases call for outside help. If the operator does not control sshd directly, for example on a managed platform, a hosted Git service or a network appliance, the correct owner is the vendor or the team that runs the host, and you should ask them what version they run and whether post-quantum key exchange is enabled. If many hosts show the warning, the work becomes an inventory and a rollout plan rather than a single edit, and the same sshd -T and ssh -v checks should be repeated across the fleet and recorded. If the environment is regulated and an auditor or customer will ask for evidence of the change, you need dated records of the versions, the effective configuration and the negotiated algorithm before and after the change, and the decision if you chose to accept the risk with WarnWeakCrypto no-pq-kex for a specific host.
DeployOpen plans, upgrades, configures and documents the server components involved in this change, including the OpenSSH versions, the sshd_config and ssh_config settings, and the test evidence that shows which key exchange was negotiated. Ask for a written scope that names the hosts, the versions to be reached and the evidence to be delivered, so you can compare it with your own inventory. DeployOpen does not issue audit reports or certifications, so independent assessors remain responsible for any attestation you need.
Questions administrators ask after seeing the 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 negotiated for this session is not one of the post-quantum methods, so the session keys are set up with classical algorithms. Traffic is still encrypted with the cipher and MAC that were agreed. The concern is about data recorded today and decrypted later by an adversary who has a future quantum computer, so the warning describes a long-term exposure rather than a broken connection. To confirm what was negotiated, run ssh -v user@host and read the kex: algorithm: line on the client, then check whether it names mlkem768x25519-sha256 or sntrup761x25519-sha512.
Is this SSH warning urgent for my servers?
It is a planning item, not an emergency. Whether it matters for a given server depends on how long the data sent over that server must stay confidential and whether a classical key exchange on it would still matter later. Prioritize servers that carry sensitive or long-lived data, that are reached by many clients, or that hold credentials that would be valuable to decrypt later. Work out the order with your security and compliance team. The sources list the server upgrade path and do not set a deadline for your organization, so confirm any date that applies to you with your regulator or customer contracts rather than with the warning text.
Can I ignore the SSH post-quantum warning?
You should not ignore it silently, because it tells you that a session was negotiated with a classical key exchange. You can accept the risk for a defined period, but record that decision with an owner and a review date. The warning is printed by the client, so some users will see it on every connection while the server remains unchanged. Treat it as an open item in your inventory until the server offers a post-quantum method and the kex: algorithm: line confirms it. Recording the decision also matters for audit and customer questionnaires, since reviewers will ask what you did about known gaps.
Why am I seeing this SSH warning now?
The OpenSSH client began printing the warning in version 10.1, and it appears when the negotiated key exchange is not post-quantum. Your server may not have changed at all. A newer client that has the warning built in is now connecting to a server that still negotiates a classical key exchange. Check the client version with ssh -V, and check the server version with sshd -V. The server side can only offer post-quantum methods if the installed OpenSSH build supports them, which the OpenSSH PQ page says means version 9.0 or later for sntrup761x25519-sha512 and 9.9 or later for mlkem768x25519-sha256.
What should I do if I cannot upgrade the SSH server?
Treat the no-pq-kex option as a temporary, risk-accepted measure, not a fix. On the client, a Match host block with WarnWeakCrypto no-pq-kex silences only this warning for the named host, and it does not change the key exchange or make the connection safer. Only use it for hosts you have assessed and documented as unable to upgrade. Set an expiry in your change record and plan the server upgrade. Note that WarnWeakCrypto no disables all warnings, which is broader than you need. Ask your security team to sign off on the exception, and review it when the server is replaced or upgraded.
Does upgrading the SSH server mean my SSH setup gets rebuilt?
Usually no. For most servers the first step is checking whether an installed OpenSSH version supports a post-quantum method and whether a KexAlgorithms line in sshd_config removes those methods. Run sshd -T to print the effective configuration and look for the kexalgorithms line. If an explicit list omits the post-quantum names, the warning will continue even on a capable server. Adding them back with a + prefix keeps the rest of the default set. The effort depends on how many servers you run, the operating system and whether upgrades are handled through a package manager, so inventory those factors first.
Should I get outside help with the SSH post-quantum warning?
Get help if your server inventory is large, if the servers run in a managed or regulated environment, or if your team lacks time to test configuration changes safely. External help is most useful for building the inventory, testing KexAlgorithms changes against your real clients, and writing the risk-acceptance records that auditors will ask for. DeployOpen plans and implements self-hosted open-source platform changes in a client's own infrastructure and prepares compliance evidence, but it does not issue audit reports or certifications. Scope and cost come from a written quote, which follows from the servers, clients and evidence you need.
How DeployOpen helps plan and document the SSH server change
DeployOpen starts by listing which SSH servers, sshd configurations and client-side KexAlgorithms settings are in scope, then checks each one with the commands on this page. The result is a written record of what each server offers before and after the change, so your security and operations teams can review it.
How we scope
- We list every SSH server in the engagement and record its OpenSSH version from sshd -V.
- We identify sshd_config and ssh_config files that set KexAlgorithms, since an explicit list can remove post-quantum methods.
- The written scope names which servers, clients and Match blocks are covered, and it is agreed before work starts.
How we build
- We run sshd -T with the relevant -C connection specs to capture the effective key exchange configuration on each server.
- We check client-side results with ssh -G and confirm that no KexAlgorithms line removes mlkem768x25519-sha256 or sntrup761x25519-sha512.
- We confirm the negotiated method with ssh -v and the kex: algorithm line, then record the result for each server.
How we hand over
- You receive a written inventory of the commands run, the output captured and the configuration changes made, per server.
- Each change is documented with the file, the setting and the reason, so a reviewer can trace it back to the warning.
- The handover includes the retest results showing the post-quantum method negotiated, or a record of any server still awaiting an update.
How we support
- Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
- We can repeat the checks after OpenSSH upgrades, so the record stays current as server versions change.
- Questions about the server's offered list or the negotiated algorithm are answered against the commands and documentation on this page.

