Why the SSH post-quantum warning appears on your client and who acts on it
If you see the OpenSSH post-quantum key exchange warning when you connect, the message is shown by your client, not by the server. Hiding it does not change the connection itself: the session negotiates the same key exchange as before, and only the notice disappears. The person running the client controls this setting, so the decision to suppress it sits with that user or with whoever manages their workstation, not with the team that runs the server. The warning is controlled by the WarnWeakCrypto option in ssh_config, which the OpenSSH 10.1 release notes describe as a new option that defaults to on. Hiding it does not make the connection post-quantum. It only stops the client from reporting that the key exchange is not post-quantum. The urgency is therefore a question of your own data and risk tolerance, and you should judge it against what you send over that connection.
The ssh_config manual says WarnWeakCrypto controls whether the user is warned when negotiated algorithms are weak or otherwise recommended against. Its post-quantum flag, no-pq-kex, disables only the warning about connections that do not use a post-quantum key exchange, and the value no disables all warnings, while the default, equivalent to yes, enables all of them. Choosing no therefore hides more than this one notice. The release notes warn that WarnWeakCrypto is likely to control additional weak-crypto warnings later, so a broad setting can silence future warnings you would want to see. Prefer no-pq-kex over no where you can. To test a change for a single run before making it permanent, use ssh -o WarnWeakCrypto=no-pq-kex, then confirm the effect with ssh -v and the warning's absence, rather than editing files first.
Who can change the warning setting and who must fix the server
Four parties touch the SSH post-quantum warning, and each controls a different part of the connection. Only the server operator can change whether post-quantum key exchange is offered, while the client user can only decide whether the warning is shown.
The client user
The person running ssh controls their own ~/.ssh/config, where the WarnWeakCrypto setting can be scoped to one host with a Match block. Changing this setting hides the notice only on that machine and does not alter the key exchange negotiated with the server. Before changing anything, check the file's permissions, since OpenSSH expects the file to be readable and writable by the user only. Use ssh -G afterwards to confirm the effective value.
The server operator
The operator of the SSH server decides whether post-quantum key exchange is offered at all, through the server's KexAlgorithms list. This is the only change that removes the warning for every client, because it alters what the connection actually uses. Check the server's current offer with ssh -Q kex from a client and against the server's own configuration before deciding. Operators should also note that OpenSSH 10.6 adds WarnWeakCrypto to sshd_config, so the same warning can appear on the server side.
The hosted Git or SSH administrator
An administrator of a hosted Git or SSH service usually cannot edit the server's configuration, so the client-side setting is the only lever available to the people connecting. Ask the service provider which key exchange algorithms it offers and whether a fix is scheduled on its side. Do not assume the provider has published a timeline unless it has said so in writing. Client users should treat a client-side suppression as temporary until the provider confirms its server offers post-quantum key exchange.
OpenSSH 10.6 release notesThe vendor or packager of the client
Operating system packages and third-party SSH clients ship their own default WarnWeakCrypto and KexAlgorithms values, which can differ from upstream OpenSSH. Check the packaged version with ssh -V and the client's documentation to learn which defaults apply to your installed build. A packager's change to the default does not alter the server, so it affects only whether the notice appears. Ask the vendor which OpenSSH version it ships and whether it has published guidance on the warning.
How to check the client version and the negotiated key exchange
These checks confirm which OpenSSH version the client runs, which key exchange algorithms it can offer, and what it will actually negotiate with a given host. Run them before and after any change to the client configuration, so you can see what the setting does and whether the connection still uses a post-quantum key exchange.
Confirm the installed OpenSSH version
Run
ssh -Vin the terminal. The command prints the installed version number and exits without connecting to anything. The setting that controls this warning,WarnWeakCrypto, is described in the OpenSSH 10.1 release notes as a newssh_configoption that defaults to on, so a client older than that release may not recognize the option at all. Note the version number before you edit any configuration. If the version is older than 10.1, check the release notes before relying onWarnWeakCryptoin your file.List the supported key exchange algorithms
Run
ssh -Q kexto list the key exchange algorithms this client supports. This shows what the client can offer, not what any server will accept. Look for the post-quantum entries in the output. The defaultKexAlgorithmslist in thessh_config(5)manual begins withmlkem768x25519-sha256, followed by thesntrup761x25519-sha512variants, so a client that has not overridden that default offers post-quantum key exchange first. If those entries are missing, the client's build or your ownKexAlgorithmssetting is the place to look.Read the effective configuration for the host
Run
ssh -Gfollowed by the target host name to print the configuration the client will use for that host. The command evaluatesHostandMatchblocks from your configuration files and then exits. Look for thewarnweakcryptoline in the output. If you scoped the setting to one host with aMatch hostblock, confirm that it appears for that host and not for others. Because the values come from the merged configuration, this output shows what is in effect, including settings inherited from the system-wide file.Check which file supplied each setting
The
sshcommand reads options from the command line first, then from your user file at~/.ssh/config, and then from the system-wide file at/etc/ssh/ssh_config. Ifssh -Gshows a value you did not expect, check these three sources in that order. Also confirm that~/.ssh/confighas strict permissions, readable and writable by you only, with no write access for others, as thessh_config(5)manual requires. A file with loose permissions can cause the client to ignore it, which would make your setting appear to have no effect.Watch the connection messages with verbose output
Run
ssh -vwith the target host to print debugging messages about connection progress, including the key exchange step. Repeat the flag to raise verbosity, as inssh -vvorssh -vvv, since verbosity has a maximum of 3. Read the output for the key exchange that was negotiated and for any warning the client prints. This is the most direct evidence of what happened on the connection. If the warning still appears after you have setWarnWeakCrypto, the output will show whether the connection itself uses a non-post-quantum key exchange.Compare the result with the server's key exchange
The negotiated key exchange depends on both sides, so the client's list alone does not decide the outcome. Confirm the negotiated algorithm in the verbose output and compare it with what the server offers, using the server's own documentation or the server administrator. The OpenSSH post-quantum page recommends post-quantum algorithms for SSH connections generally. If the verbose output shows a non-post-quantum exchange, hiding the warning does not change that exchange. Record the version, the negotiated algorithm and the host, so you can show what the connection used if asked.
Which client settings produce the warning and what each one means
This table compares the client-side causes of the post-quantum key exchange warning, the fix each one needs and the setting the sources name. Read each row as a cause you can check on your own machine with ssh -V, ssh -G and ssh -v. The main takeaway is that the warning usually points to a client setting, and hiding it with WarnWeakCrypto leaves the connection's key exchange unchanged.
| Client situation | What it means | Fix or setting the sources name |
|---|---|---|
| OpenSSH client older than 10.1 | The client predates the WarnWeakCrypto option and does not report this warning, so the absence of a warning tells you little about the connection. | Check the version with ssh -V. Upgrade to OpenSSH 10.1 or later, then confirm the warning and WarnWeakCrypto setting behave as the release notes describe. |
| User config overrides KexAlgorithms | A line in ~/.ssh/config or a system file replaces the default KexAlgorithms list, so the post-quantum algorithms may not be offered first. | Run ssh -G hostname and look at the kexalgorithms line. Remove or correct the override so the list begins with mlkem768x25519-sha256 as the default does. |
| System config overrides KexAlgorithms | A line in /etc/ssh/ssh_config sets a key exchange list that takes effect for every user on the machine. | Check /etc/ssh/ssh_config for a KexAlgorithms line. Ask the administrator who manages the system before editing it, then confirm with ssh -G. |
| WarnWeakCrypto set to yes or left at default | The default is equivalent to yes, so all weak crypto warnings appear, including the post-quantum one. | To keep warnings but scope them, leave the default. To silence only this warning for one host, use WarnWeakCrypto no-pq-kex inside a Match host block. |
| WarnWeakCrypto set to no | This setting disables all warnings, and the release notes say future weak crypto warnings may also be hidden. | Replace no with no-pq-kex so only the post-quantum warning is suppressed. Confirm the value with ssh -G. |
| Client library or packaged build with its own defaults | A bundled build or library may ship its own KexAlgorithms or WarnWeakCrypto values that differ from the OpenSSH defaults. | Check the build's documentation or run ssh -V and ssh -Q kex on the packaged binary. Confirm the sources name a setting for that library before you change it. |
| Config file with loose permissions | ssh_config(5) requires ~/.ssh/config to be readable and writable only by the user, so a looser file can be unreliable. | Set the file permissions so only the user has read and write access, then re-run ssh -G to confirm the settings take effect. |
Ways to hide the warning and how far each one reaches
The -o option passes a setting for a single invocation of ssh, using the same format as a configuration file. Adding -o WarnWeakCrypto=no-pq-kex to one command turns off the post-quantum key exchange warning for that connection only, and nothing is saved to disk. This is the lowest-impact option because it expires as soon as the command exits, so you can use it to test whether a host is the cause without changing your configuration.
- Scope: Applies only to the single
sshinvocation where you add the option. - Nothing persists: The next connection, including the next run of the same command, shows the warning again.
- Other flags still work: The option can be combined with other
-osettings in the same command. - Scripts need it on every call: Each
sshcall in a script or CI job must carry the option, or the warning returns for that call. - Verbose output for checking: Adding
-vshows connection progress so you can confirm the command ran against the host you expected.
Before relying on this option, confirm the exact syntax your installed ssh accepts by checking ssh -V and the option list in the ssh_config(5) manual for your version.
A persistent setting in ~/.ssh/config stays in place across sessions, so the warning stays hidden for future connections. Wrapping the setting in a Match host block limits it to the hosts you name, which is the scope the OpenSSH post-quantum page recommends for a single server. The page gives the example pair Match host unsafe.example.com followed by WarnWeakCrypto no-pq-kex, and it describes this approach for cases where the server cannot be upgraded or where you accept the risk of quantum-unsafe cryptography.
- Named hosts only: Other hosts continue to show the warning, so the suppression is limited to the server you chose.
- File permissions: The
ssh_config(5)manual says~/.ssh/configmust be readable and writable by the user only, with no write access for others. - Check the result: Run
ssh -Gwith the host name to print the evaluated configuration and confirm the setting applies. - Keep the block specific: Use the exact host name you connect to, and review the block when the server is upgraded.
- Record the reason: Note in the file, or in your team's records, why the warning was suppressed and when the block should be removed.
After saving the block, run ssh -G against the host and check that WarnWeakCrypto shows the value you set.
A setting in /etc/ssh/ssh_config applies to every user and every host on the machine, because ssh(1) reads this system-wide file after ~/.ssh/config. A global value of no-pq-kex hides the post-quantum warning for every connection from that machine, including connections to servers that could offer post-quantum key exchange. This option reaches the furthest, so it needs the most justification and the clearest record of who approved it.
- Widest reach: Every host that the machine connects to loses the warning, not only the one you had in mind.
- Other warnings may be hidden too: The OpenSSH 10.1 release notes say
WarnWeakCryptois likely to control additional weak crypto warnings in future releases, sonomay hide more than the post-quantum warning. - Edit requires administrator rights: Changing
/etc/ssh/ssh_configaffects all users, so only a system administrator should make the change. - Lower-priority file: A matching setting in
~/.ssh/configor on the command line takes precedence over the system file. - Audit needed: Keep a record of the machines where the setting is applied, so the change can be reverted when the underlying server is upgraded.
Confirm the setting on each affected machine with ssh -G against a host, and confirm your installed version with ssh -V.
Decision path from the warning to a temporary suppression
The path starts when the SSH post-quantum warning appears during a connection. The first hand-off is to check the client version with ssh -V and the offered key exchange with ssh -Q kex, then ssh -G to confirm the KexAlgorithms value in effect. If the client can offer post-quantum key exchange and the server accepts it, the fix is to update the client or its configuration. Only when the server cannot be upgraded, or the risk is accepted, does the path reach a Match host scoped WarnWeakCrypto no-pq-kex entry, which must be revisited later.
Decision path from the warning to a host-scoped suppression.
Steps to scope the suppression to one host in ssh_config
This sequence limits the WarnWeakCrypto setting to a single host you name, so the post-quantum key exchange warning is hidden only for connections to that server and stays visible for every other connection. Work through the steps in your own user file, and confirm each one before moving on.
Confirm the user config file exists
Check whether the file ~/.ssh/config exists in your home directory. Run
ls -l ~/.ssh/configin a terminal. If the file is missing, create it withtouch ~/.ssh/config. You are done with this step when the listing shows the file, and you know you are editing your own user file rather than the system-wide one.Set strict file permissions
The ssh_config(5) manual says ~/.ssh/config must have strict permissions, readable and writable by the user only, with no write access for other users. Run
chmod 600 ~/.ssh/config, then runls -l ~/.ssh/configagain. You are done when the permissions read-rw-------and only your account owns the file.Identify the exact host name to scope
Decide which server the warning should be hidden for, and use the exact host name you connect with, such as the name in your
sshcommand or your known hosts entry. Do not use a wildcard unless you intend every matching host to be affected. Write the name down so you can enter it exactly in the next step.Add the Match host block
Open ~/.ssh/config in a text editor and add a line
Match host unsafe.example.comnaming your server, withunsafe.example.comreplaced by your host name. The OpenSSH post-quantum page gives this form as its example. Add the setting directly beneath it, so the block is ready for the next step.Set WarnWeakCrypto beneath the Match line
Under the Match line, add the indented line
WarnWeakCrypto no-pq-kex. The ssh_config(5) manual says the no-pq-kex flag disables only the warning about connections that do not use a post-quantum key exchange. Do not use the valuenoalone, because the OpenSSH 10.1 release notes say that value can hide future weak crypto warnings beyond this one.Save the file and check the Match scope
Save ~/.ssh/config and close the editor. Run
ssh -G unsafe.example.com | grep -i warnweakcrypto, with the same host name, to print the configuration after Match blocks are evaluated. The output should show the no-pq-kex value. Then runssh -G another.example.com | grep -i warnweakcryptowith a different host to confirm the setting does not apply there.Note the system-wide file's reach
The /etc/ssh/ssh_config file applies to all users on the machine, not only you, so a setting there would silence the warning for everyone. Check that file with
grep -i warnweakcrypto /etc/ssh/ssh_configand remove any setting you did not intend to keep. The ssh(1) manual says the user file is read before the system file, so your scoped line is the one you control.
What hiding the warning gives up and what it does not change
Hiding the warning removes only the notice. OpenSSH's post-quantum page recommends that all SSH connections use post-quantum key exchange algorithms, and a client that sets WarnWeakCrypto to no-pq-kex still negotiates the same non-post-quantum key exchange as before. The connection itself does not change, the key exchange algorithm does not change, and the server does not change. What you give up is the reminder that a particular server or connection is not using a post-quantum key exchange. Before you rely on a suppressed warning, confirm with the server operator whether the server can offer post-quantum key exchange at all, using the server's own documentation or the check described in the server section of this guide. The sources on this page do not say how any data sent over such a connection would be affected, so do not treat the suppression as a statement about data exposure.
Scope the setting as narrowly as you can. The OpenSSH post-quantum page gives the pattern of a Match host block containing WarnWeakCrypto no-pq-kex, which limits the suppression to a named host, such as Match host unsafe.example.com, and leaves warnings for every other server in place. Use a global setting in ~/.ssh/config or /etc/ssh/ssh_config only if you accept the warning being hidden for every connection the client makes. Record the host, the date and the reason in your own notes, and set a point at which you will remove the block, for example when the server operator confirms an upgrade. You should also be aware that WarnWeakCrypto is likely to control additional weak crypto warnings in future releases. The OpenSSH 10.1 release notes say that the value no may then hide more than the post-quantum warning, so prefer no-pq-kex over no, and re-check the setting after you upgrade OpenSSH.
What can break after hiding the warning on the client
Hiding the warning changes more than one message on screen. It changes how the client reports weak cryptography in general, and it changes the setting for every user or job that reads the same configuration. The cards below cover the places where that change can cause harm or leave an unexpected gap.
Automation that misses other warnings
Scripts and CI runners that set WarnWeakCrypto no-pq-kex may also silence other weak-crypto warnings, because the option controls a category and the OpenSSH 10.1 release notes say it is likely to cover additional warnings in future releases. A pipeline that passed before may stop surfacing a new notice without any visible change. Check the value a runner actually uses with ssh -G on that runner, and compare it with the release notes for the version it installs.
Shared machines and global config
A change to /etc/ssh/ssh_config applies to every user on the machine, including people who never asked for the change and may need the warning. Use ~/.ssh/config for a single account, or a Match host block scoped to the server you have accepted the risk for. Confirm which file holds the setting with ssh -G run as each account that connects from the machine.
Clients that do not recognize the option
The WarnWeakCrypto option appears in newer OpenSSH releases, so an older client may reject the line or ignore it. A workstation or runner on an older build can then show the warning again, or can fail to parse the config file, depending on how it handles unknown keywords. Run ssh -V on each client that uses the config and confirm the option takes effect with a test connection and ssh -v.
Compliance reviews expecting a record
A reviewer may expect the warning to be recorded as an open item, or resolved, rather than hidden on the client. A silenced warning does not show in a review of the client output, so the risk stays unlisted. Record the server, the accepted risk, the date and the owner, and tie that record to the plan for upgrading the server. Ask the reviewer which evidence format they accept before you close the item.
Server-side warnings on newer releases
OpenSSH 10.6 added WarnWeakCrypto to sshd_config(5), which logs when a client uses a key agreement scheme that is not post-quantum safe. A client-side setting does not change what the server logs, so the server can still record the same connection. Check the server log after you hide the client warning, and treat the server log as the record for the server's side of the connection.
Questions people ask before hiding the SSH post-quantum warning
Is the SSH connection still encrypted when I hide the post-quantum warning?
Yes. Hiding the warning changes only whether the client prints a notice. It does not change the key exchange that the connection negotiates, so the session is encrypted exactly as it was before. OpenSSH's post-quantum page recommends that all SSH connections use post-quantum key exchange algorithms, so a connection that lacks one is still a connection that falls short of that recommendation. Hiding the notice leaves that gap in place. Before you hide anything, run ssh -v against the host to confirm which key exchange algorithm was negotiated, so you know what the warning is about in your case.
Is the post-quantum SSH warning urgent?
The sources on this page do not set a deadline, and they do not say the warning signals an active attack. What they do say is that OpenSSH recommends post-quantum algorithms for all SSH connections, and that the warning exists to flag connections that do not use one. Treat it as a planning item rather than an emergency. Decide, for each host that triggers it, whether the server can be upgraded, whether the data sent over that connection needs protection for a long time, and who owns the decision. Those answers set how quickly you need to act.
Can I silence the SSH post-quantum warning for all hosts at once?
You can, but the sources advise against doing it globally without thought. Setting WarnWeakCrypto no in your user file ~/.ssh/config or in /etc/ssh/ssh_config turns off the warning for every host you connect to. The ssh_config manual also documents the narrower no-pq-kex flag. The OpenSSH 10.1 release notes warn that WarnWeakCrypto is likely to control additional weak crypto warnings later, so no may hide more than the post-quantum notice. For a single server, scope the setting with a Match host block, as the OpenSSH post-quantum page shows. Global suppression removes the signal for every connection, including ones you have not reviewed.
What should I do if I cannot upgrade the SSH server?
The OpenSSH post-quantum page says that silencing the warning is an appropriate choice if you cannot upgrade the server or you accept the risk of quantum-unsafe cryptography. In that case, scope the setting to the one host, using a Match host block with WarnWeakCrypto no-pq-kex, and record why you made the choice, who approved it and when you will review it. Confirm the server's real key exchange list first with the server team, since the client cannot change what the server offers. Hiding the warning for a host you cannot upgrade is a documented option, but it is a risk decision your organization should own in writing.
Is it safe to set WarnWeakCrypto to no?
The sources do not call it safe or unsafe. They describe what the setting does. WarnWeakCrypto no disables all warnings the setting controls, not only the post-quantum one, and the OpenSSH 10.1 release notes say more warnings may be added under this option later. WarnWeakCrypto no-pq-kex is narrower, because it disables only the post-quantum key exchange warning. For that reason, prefer no-pq-kex, scoped to named hosts, over a global no. Confirm the value you chose with ssh -G host, which prints the configuration after Host and Match blocks are evaluated.
How do I check that the warning is hidden only where I intended?
Use ssh -G with the host name, which prints the effective client configuration after evaluating every Host and Match block, then exits. Look for the warnweakcrypto line in the output. Also check the file permissions, because the ssh_config manual says ~/.ssh/config must be readable and writable by the user only, with no write access for others. To confirm the connection itself, run ssh -v host and read the negotiated key exchange in the debug output. Use ssh -V to record the installed OpenSSH version, since behavior differs between releases.
When should I bring in outside help for the SSH warning?
Get outside help when the warning covers many hosts, when the servers are owned by teams you cannot change, or when you need a documented decision for an audit or customer review. A short list of cases helps: the warning appears across many clients or scripts, you need to know which servers offer post-quantum key exchange, or your organization needs a written, host-by-host record of suppressed warnings. DeployOpen can plan and implement SSH configuration across self-hosted platforms in your own infrastructure, and it prepares the systems and evidence that compliance reviewers ask for. It does not issue audit reports or certifications. Ask for a written scope before work starts, so you know what is included and what the timeline is.
When to ask for help with the SSH warning on your client
Hiding the warning on your own machine is a small change, but some situations call for help before you touch the client settings. The first is scale. If the warning appears on many hosts or for many users, editing a single ~/.ssh/config no longer makes sense, and the team that manages your client configuration should decide how the setting is applied. The second is central management. If your client is provisioned and locked down by an IT or platform team, you may be unable to edit ~/.ssh/config or /etc/ssh/ssh_config at all, and that team has to make the change, or confirm that it should not be made. Before you ask, confirm which file your organization's tooling manages, because a local edit may be overwritten on the next sync.
The second situation is regulated work. If your organization operates under a framework that requires a record of configuration changes, a suppressed warning is itself a change to document. Record the host or Match block affected, the value set, who approved it, and the date. Ask your compliance or security lead what format they expect, since the right evidence depends on the assessment you are preparing for. The third situation is a server you cannot upgrade. The OpenSSH post-quantum page describes silencing the warning for this case, but a server that cannot offer post-quantum key exchange is a risk decision, not only a client setting. Escalate it so that the person who owns the risk signs off on the exception, and so the decision is written down with a review date.
Escalate early if you are unsure which of these applies. The warning also depends on the client version. The WarnWeakCrypto option was introduced in OpenSSH 10.1, so an older client will not recognize the setting and may need a different approach, which your platform team can confirm. Ask them to check the installed version with ssh -V before any change. Finally, remember that WarnWeakCrypto may gain further warnings over time, so the value no can hide more than the post-quantum notice. Ask whether the setting should be scoped with a Match block and the no-pq-kex flag instead of being disabled globally, and whether anyone is responsible for revisiting that choice as the software changes.
How DeployOpen works on this
DeployOpen treats suppressing the SSH post-quantum warning on the client as a scoped configuration change, not a blanket setting. We identify which hosts still lack post-quantum key exchange, limit any suppression to those hosts, and document what the team is accepting in return.
How we scope
- We list the SSH hosts your clients connect to and record which ones do not offer a post-quantum key exchange today.
- We confirm which client machines, scripts and CI jobs use the warning setting, and who owns each one.
- Engagements are fixed-scope, with the written scope stating which hosts and clients any suppression will cover.
How we build
- We scope the WarnWeakCrypto no-pq-kex setting to specific hosts with a Match block rather than applying it globally.
- We trial the setting on a single run with the ssh -o option before writing it into a configuration file.
- We check the resulting configuration with ssh -G and confirm the connection still negotiates as expected with ssh -v.
How we hand over
- We deliver the final ssh_config entries, the file permission check for ~/.ssh/config, and the list of covered hosts.
- We document the accepted risk, the affected hosts, and the date each suppression should be reviewed.
- We record the client and OpenSSH version used during testing, so your team can repeat the checks after an upgrade.
How we support
- Ongoing support and continuous review are available as a retainer, covering upgrades that change the warning behavior.
- We track future OpenSSH releases that extend WarnWeakCrypto, since the no value may hide additional warnings over time.
- We advise on moving affected hosts to post-quantum key exchange so the suppression can be removed once servers are upgraded.

