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.
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.
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.
Get the client's OpenSSH version
Run
ssh -Vin 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.List the client's key exchange algorithms
Run
ssh -Q kexto list the key exchange algorithms your local client supports. Look for post-quantum names in the output, such assntrup761x25519-sha512andmlkem768x25519-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.Record the negotiated key exchange
Connect to the host with
ssh -vand read the debug output. The client logs the chosen algorithm in the formkex: 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.Read the server's effective KexAlgorithms
An operator with access to the server runs
sshd -Tand reads thekexalgorithmsline 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.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 offermlkem768x25519-sha256. If the server runs one of those versions and the effectivekexalgorithmsline 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.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 -voutput 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.
| Situation | What it looks like | Who has to act |
|---|---|---|
| Server runs OpenSSH 9.0 or later with post-quantum algorithms enabled | The server offers sntrup761x25519-sha512 or mlkem768x25519-sha256, but the client still negotiates a classical algorithm or the client's list excludes them | User or client admin: check the client's KexAlgorithms and ssh -Q kex output |
| Server offers post-quantum algorithms but KexAlgorithms disables them | The server's effective configuration, shown by sshd -T, leaves out the post-quantum algorithms | Server operator: edit sshd_config and remove the restriction |
| Server runs an older OpenSSH version with no post-quantum option | The server version predates OpenSSH 9.0, so no post-quantum key exchange is available to negotiate | Server operator: upgrade the SSH server software |
| Client sets its own KexAlgorithms | The client's ssh_config or command line limits the key exchange list to classical algorithms | User: change or remove the client's KexAlgorithms entry |
| Server is a managed or hosted service | The user cannot read the server configuration or upgrade its software | Service provider: confirm the server's version and offered algorithms |
| Client has WarnWeakCrypto set to no-pq-kex or no | The warning is hidden on the client, though the key exchange has not changed | User: decide whether hiding the warning is acceptable for this host |
| Server runs OpenSSH 10.6 or later with WarnWeakCrypto enabled | The server logs connections that use a classical key exchange | Server 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 -Vand compare the version number with the OpenSSH release notes. - List client algorithms: Run
ssh -Q kexand confirm a post-quantum option such asmlkem768x25519-sha256appears in the output. - Inspect the handshake: Run
ssh -v hostand look for a line in the formkex: 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-kexentry 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.
If you administer the SSH server, the warning is a task for you, and the first step is to check what the server actually offers. OpenSSH says the ideal fix is to run a server that supports at least one post-quantum algorithm, namely sntrup761x25519-sha512 from OpenSSH 9.0 or mlkem768x25519-sha256 from OpenSSH 9.9. Run sshd -T to print the effective configuration, which shows the value of KexAlgorithms after all includes and overrides.
- Check the effective value: Run
sshd -Tand read thekexalgorithmsline to see what the server will offer. - Confirm the version: Check that the installed OpenSSH is 9.0 or later for
sntrup761x25519-sha512, or 9.9 or later formlkem768x25519-sha256. - Look for overrides: If the server runs a supported version, check whether
KexAlgorithmsinsshd_confighas removed the post-quantum entries, since OpenSSH points to this as a common cause. - Review WarnWeakCrypto: In OpenSSH 10.6, the
WarnWeakCryptooption insshd_configis enabled by default and logs clients that use a key agreement scheme that is not post-quantum safe, so check your logs after upgrading. - Plan the upgrade: If the server is older than the required versions, schedule an upgrade through your normal change process and test it on a non-production host first.
After any change, run sshd -T again and confirm the post-quantum algorithm appears in the kexalgorithms list.
If you run a hosted Git or file transfer service, your users will report the warning, but the server that answers them is yours to check. The service owner's job is to confirm the platform's SSH endpoint offers a post-quantum key exchange, then give users an accurate answer about what they can and cannot change. Users cannot fix the server, so your reply should say which side of the connection is responsible.
- Test the endpoint: Connect to the platform's SSH endpoint with
ssh -vand record which key exchange algorithm is negotiated. - Check the server configuration: Confirm the endpoint's
KexAlgorithmssetting includes a post-quantum algorithm, usingsshd -Tif you operate the host. - Answer users clearly: Tell users that the warning is generated by their client and that the remedy is on the server, and give them the status of the fix.
- Do not recommend silencing: Advise users that suppressing the warning does not change the key exchange, so it does not protect the session.
- Track the status: Record which endpoints are upgraded, which are not, and the date each was checked, so answers to users stay accurate.
Before you publish a reply, confirm the negotiated algorithm on the live endpoint, not on a test host.
The security lead's role is to make sure the finding is recorded accurately, assigned to the right owner and reviewed after the fix. The warning itself is a client message about the negotiated key exchange, so the record should state the observed algorithm, the affected host, the version and the owner, not a general statement that a product is compliant. Keep the finding factual so that later reviewers can check it.
- Record the observed state: Note the host, the negotiated algorithm from
ssh -v, and the server's effectiveKexAlgorithmsfromsshd -T. - Assign ownership: Name the team that operates each server, so the fix is not left with a developer who only sees the client warning.
- Note version facts: Record the OpenSSH version and the release in which the relevant options appeared, citing the OpenSSH release notes.
- Track the suppression risk: If any client has
WarnWeakCryptoset tono-pq-kexfor a host, log that setting and its owner, since it hides the warning without changing the key exchange. - Schedule a retest: Set a date to rerun the checks, and close the finding only when the negotiated algorithm is post-quantum on the live host.
The record should answer one question: which host, negotiating which algorithm, checked on which date, and by whom.
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.
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.
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.
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.cServer 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.
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.

