OpenSSH compatibility with older clients, appliances and distributions

OpenSSH has offered hybrid post-quantum key exchange by default since 10.0, with the server offering it first, so compatibility depends on what older clients, appliances and distribution builds negotiate. Verify the negotiated algorithm on each path before changing defaults.

On this page

Will OpenSSH post-quantum key exchange work with the clients and appliances we run?

As of 2026-12-03, OpenSSH 10.6 (portable 10.6p2) defaults to the mlkem768x25519-sha256 key exchange, and a connection uses it only when both peers offer it. Older clients and appliances that do not offer it fall back to classical algorithms such as curve25519-sha256 or the ECDH nistp curves, so the connection still works, but it is not post-quantum. The server does not refuse these clients by default. Whether your sessions are protected depends on the peer at each end, not just on the server you upgraded.

Three groups of teams should check this. Teams with mixed client fleets need to know which laptops, jump hosts, build agents and automation tools run an OpenSSH build that offers the hybrid method, and which run older builds or third-party SSH libraries. Teams that run network appliances with embedded SSH, such as switches, routers and out-of-band management boards, need to confirm with each vendor whether its SSH stack offers mlkem768x25519-sha256 at all, because many embedded implementations do not. Teams whose Linux distributions pin older OpenSSH builds for stability should check the package version they actually run, since a backported or older package may not include the default described above.

Start with an inventory: run ssh -Q kex on each client build to list the key exchange methods it supports, and record which hosts and appliances do not offer mlkem768x25519-sha256. For the server side, the WarnWeakCrypto option in sshd_config, enabled by default in OpenSSH 10.6, logs when a client negotiates a key exchange that is not post-quantum, which gives you a practical list of clients to chase. Ask appliance vendors in writing whether their current firmware supports the hybrid method, and confirm the answer against their release notes rather than accepting a general statement.

Which OpenSSH versions and builds offer post-quantum key exchange

This table lists the OpenSSH releases that added or changed post-quantum key exchange, with the algorithm each one introduced and the portable build requirements. Read each row as the earliest release where the setting appears, and confirm your own build with ssh -Q kex before relying on it. Sources were read on 2026-12-03.

ReleaseDatePost-quantum key exchange changeBuild or configuration note
OpenSSH 9.0April 2022Offers sntrup761x25519-sha512 by defaultSource: OpenSSH post-quantum page, read 2026-12-03
OpenSSH 9.9Not stated in the sources readAdds mlkem768x25519-sha256Source: OpenSSH post-quantum page, read 2026-12-03
OpenSSH 10.0April 2025Makes mlkem768x25519-sha256 the default key agreementSource: OpenSSH post-quantum page and release notes, read 2026-12-03
OpenSSH 10.1Not stated in the sources readAdds a client warning when a connection uses a non-post-quantum key agreement, controlled by WarnWeakCryptoWarning can be turned off for only this check with the no-pq-kex flag
OpenSSH 10.6October 6, 2026Adds server-side WarnWeakCrypto in sshd_config, enabled by defaultServer logs clients that negotiate a non-post-quantum key agreement
Portable builds with OpenSSL, LibreSSL, AWS-LC or BoringSSLPer INSTALL filePost-quantum algorithms depend on the libcrypto the build links againstConfirm the libcrypto version supports the algorithms, using ssh -Q kex on the built binary
Portable builds using --without-opensslPer INSTALL fileCarry only a subset of ciphers and algorithmsCheck the output of ssh -Q kex, as the post-quantum names may be absent

How the server and client choose a key exchange algorithm

Key exchange in OpenSSH is set on each side separately. The KexAlgorithms directive in sshd_config sets which key exchange algorithms the server offers, and the KexAlgorithms option in ssh_config sets which ones the client offers. During connection setup, the two sides exchange their lists, and the first algorithm in the client's list that the server also supports is used. Because the client's order controls the choice, a server that offers a post-quantum algorithm does not guarantee that a given client will use one. Teams planning a rollout should confirm the list on both ends rather than assuming the default on either side will be selected.

The documented default server list in sshd_config begins with mlkem768x25519-sha256, a hybrid of ML-KEM and x25519, followed by sntrup761x25519-sha512, curve25519-sha256 and the ECDH entries. The default client list in ssh_config also starts with the post-quantum hybrid. OpenSSH 10.0 made mlkem768x25519-sha256 the default, so servers and clients built from that release or later offer it without configuration. The manual pages also list mlkem768nistp256-sha256 as a supported name that is not in the default list, and they list no ML-KEM-1024 key exchange name. Confirm each build's supported names with ssh -Q kex before relying on any specific one.

The KexAlgorithms value accepts prefix characters that change how it is applied. A plus sign (+) appends the listed algorithms to the default list, a minus sign (-) removes the listed algorithms from the default, and a caret (^) places the listed algorithms at the front of the list. These forms are documented in the sshd_config and ssh_config manual pages. For example, KexAlgorithms +mlkem768nistp256-sha256 keeps the defaults and adds that name, while a plain list without a prefix replaces the default entirely. Check the exact syntax against the manual page for the release installed, because a plain list can silently drop the post-quantum hybrid if it omits it.

Where a classical fallback happens during key exchange

This illustrative sequence starts when the OpenSSH client sends its ordered list of key exchange algorithms, which in current builds places mlkem768x25519-sha256 first. The server then sends its own list, and both sides pick the first algorithm that appears in both lists. When the client and server share a post-quantum option, the handshake uses it. When they share none, the handshake falls back to curve25519-sha256, a classical elliptic-curve method. Check the KexAlgorithms setting on both ends and whether an older appliance or distribution build offers any post-quantum name, because that determines which branch a connection takes.

Illustrative: the negotiated key exchange depends on the mutual intersection of both offer lists.

Which older clients and appliances are likely to negotiate classically

A client or appliance that does not offer a post-quantum key exchange falls back to classical algorithms, and the server's KexAlgorithms list then decides what is negotiated. The cards below describe the groups most likely to do this, and each one needs to be verified in the client or appliance itself rather than assumed.

OpenSSH clients older than 9.0

OpenSSH has offered post-quantum key agreement by default only since release 9.0. Clients built from earlier releases do not offer the sntrup761x25519-sha512 or mlkem768x25519-sha256 names, so a connection from them to a current server will negotiate a classical key exchange such as curve25519-sha256. Check the client version with ssh -V and list what a build supports with ssh -Q kex. Upgrading the client, not only the server, is what changes this outcome.

OpenSSH post-quantum page

Clients built without a suitable libcrypto

The OpenSSH portable INSTALL file states that --without-openssl builds with only a subset of ciphers and algorithms. A client compiled that way may lack the post-quantum key exchange names even when its version number is recent. Confirm the build configuration and the output of ssh -Q kex on each build, because the version alone does not show which algorithms were compiled in.

OpenSSH INSTALL file

Appliances and embedded SSH stacks

Network appliances and embedded devices often ship their own SSH implementation, and the vendor's documentation may not state its KexAlgorithms list at all. Such a device may offer only classical key exchange methods, or methods that are not documented in the OpenSSH sources. Ask the vendor for the exact key exchange algorithms the device offers and test a connection from a known client to see what is negotiated, since the device's configuration interface may not expose this setting.

Distribution packages pinning an older OpenSSH

Long-term support distributions often keep an older OpenSSH release in their packages and backport security fixes without changing the version number. A server or client on such a system can therefore lack the post-quantum defaults that the upstream release notes describe. Check the package version and the distribution's changelog for the relevant release, and confirm the key exchange list with ssh -Q kex rather than inferring it from the package name.

Clients overriding KexAlgorithms with an older list

A user's ssh_config or a fleet configuration management template can set KexAlgorithms to an older list, which removes the post-quantum names from the offer even when the software supports them. The documented way to change the list is to prefix it with +, - or ^, so an override that replaces the whole list will drop the default hybrid entries. Search client configuration files and managed templates for KexAlgorithms, and check the resulting negotiation on a test connection.

ssh_config man page

Clients negotiating ECDH or curve25519 only

Some clients and scripts are configured to offer only ecdh-sha2-nistp256 or curve25519-sha256 and do not include the hybrid names. A server that accepts those names will complete the connection with a classical key exchange even though it could negotiate a post-quantum one. Capture the key exchange algorithm from a live session, for example with verbose client output, to confirm which method was used rather than relying on the client's configured list.

How compatibility differs by client, server and distribution situation

When both ends run OpenSSH 10.x, the sources describe the post-quantum key exchange as the default on both sides, so the negotiation has the most documented support. OpenSSH 10.0 made mlkem768x25519-sha256 the default key agreement scheme, and the documented default list in sshd_config and ssh_config includes it ahead of the classical curve25519 entries. The 10.1 client warning and the 10.6 server-side WarnWeakCrypto setting are both on by default, so a connection that negotiates a non-post-quantum scheme will produce a log or warning message.

  • Default key exchange: Both sides should offer mlkem768x25519-sha256 in their default KexAlgorithms list. Check with ssh -Q kex on each build.
  • Client warning: The 10.1 client warns when a connection negotiates a non-post-quantum key agreement. Confirm the message appears in your test logs.
  • Server logging: The 10.6 WarnWeakCrypto setting in sshd_config is enabled by default, so review server logs for weak-scheme events.
  • Host and user keys: Key exchange is separate from signatures. The sources list the default host and identity key types, and they do not describe the post-quantum key exchange as changing those.
  • Overrides: A KexAlgorithms line prefixed with +, - or ^ changes the list, so confirm the effective setting with sshd -T and ssh -G.

Check the negotiated algorithm on a sample session and confirm the 10.x build reports the expected KexAlgorithms list in your environment.

What to check before changing OpenSSH key exchange defaults

This sequence establishes which OpenSSH builds, clients and appliances your servers talk to, and what each one negotiates today, so any change to KexAlgorithms is made on evidence rather than assumption. The output is a dated record of supported algorithms and observed negotiations for each peer type.

  1. Inventory OpenSSH versions on servers and clients

    Ask the administrator of each server group and each client workstation or jump host to record the output of ssh -V and sshd -V where applicable, along with the portable package version if the build comes from a distribution. Record the host name, role and build source in one inventory sheet. The step is done when every server and client in scope has a version recorded and no entry reads unknown. The 10.6 and 10.6p2 releases are current as of December 2026, so any build older than the 9.0 release (April 2022) will not offer post-quantum key agreement by default and should be flagged for the next step.

  2. List supported key exchange algorithms on each build

    On each distinct build from the inventory, run ssh -Q kex and save the output next to the host record. This lists what that build can offer, which is not the same as what the default configuration offers. Compare the lists for mlkem768x25519-sha256 and sntrup761x25519-sha512, and note whether any diffie-hellman-group names appear. Confirm each result against the build's own manual page, since distribution packages may be compiled with a different library underneath. The step is done when every distinct build has a saved list.

  3. Identify appliances and embedded peers

    Find every peer that connects to these servers over SSH but is not a general-purpose OpenSSH install: network appliances, storage controllers, embedded management interfaces, backup agents and scripted SFTP clients. For each one, ask its vendor what KexAlgorithms behavior it implements, whether it offers any post-quantum key agreement, and whether that behavior can be changed by the customer. Record the vendor's written answer and its date. The step is done when each peer type has a written vendor response or a recorded note that the vendor has not answered.

  4. Test a connection to each peer type

    Open a test session from one representative host of each peer type to a test OpenSSH server, using verbose output with ssh -vv to read the key exchange line the client reports. Record the negotiated algorithm for each pair. Run the same test again after any configuration change you plan to make. The step is done when each peer type has a recorded negotiated algorithm, and any pair that negotiates a classical-only scheme is listed for the next step. Use test hosts that are not in production.

  5. Enable WarnWeakCrypto logging on servers

    On each server in scope, confirm the version supports the WarnWeakCrypto option in sshd_config, which the release notes describe for 10.6, and check that it is enabled by default. Then review the sshd log over a representative period to see which client addresses and client versions negotiate a classical key agreement scheme. Treat this log as a list of clients to investigate, not as a list of clients to block. The step is done when you have a log summary that names each client identity and negotiated scheme seen in the period, and any build older than 10.6 is recorded as unable to report this.

  6. Set any fallback or pinned list only after testing

    Change KexAlgorithms in sshd_config or ssh_config only after the previous steps show which peers will be affected. If a peer must keep a classical-only exchange, prefer adding that algorithm with a + prefix over replacing the whole list, and document the reason beside the setting. Apply the change to one test server first, rerun the connection tests from the previous step, and confirm the negotiated algorithms match what you expected. The step is done when the test server reproduces the expected negotiation for every peer type and the change is recorded in your configuration history.

What the sources do not establish about older clients and appliances

The OpenSSH sources cover the defaults of the portable and current releases, but they say nothing about the older clients, network appliances and distribution builds that many fleets still run. Each card below names one gap and the party to ask, since the answer will decide whether a hybrid key exchange setting can be relied on in your environment.

No compatibility matrix for appliances

The OpenSSH documentation does not publish a list of network appliances, managed file transfer servers or embedded SSH stacks that negotiate mlkem768x25519-sha256 successfully. Because the default key exchange list is only a set of names, a device that offers none of them will fall back to a classical method, and the server has no way to know which device it is talking to. Ask each appliance vendor which key exchange algorithms its SSH server and client implement, and whether it has been tested against OpenSSH 10.0 or later.

sshd_config docs

No firmware statement on hybrid support

The sources do not say which appliance firmware versions support mlkem768x25519-sha256, and they do not describe any firmware release that adds it. Firmware for routers, switches and file transfer appliances is often released on a schedule separate from the operating system, so a fleet can contain several firmware generations with different answers. Ask each vendor for the minimum firmware version that offers the hybrid method, and whether that version is supported in your deployment.

OpenSSH post-quantum page

No timeline for dropping classical fallback

The OpenSSH sources state that the hybrid method is the default and that classical methods such as curve25519-sha256 remain in the list, but they give no date on which the classical fallback will be removed. A client that negotiates only a classical method will keep connecting to servers until a server operator changes the KexAlgorithms setting. Ask the appliance vendor whether it intends to remove classical-only key exchange, and by what release, before you plan an allowlist that depends on that removal.

OpenSSH release notes

No documented behavior of distribution builds

The OpenSSH portable INSTALL file says that a build with --without-openssl includes only a subset of ciphers and algorithms, and that the crypto library version matters, but the sources do not describe how the OpenSSH packages shipped by Linux distributions are compiled or which libcrypto they link. A distribution build may therefore omit a key exchange method or link a library that does not support it. Ask your distribution maintainer for the exact package version, the crypto library it links, and the output of ssh -Q kex on the installed binary.

OpenSSH INSTALL file

What can go wrong when hybrid key exchange meets older peers

The main risk when hybrid key exchange meets older peers is that the post-quantum setting goes unused without anyone noticing. OpenSSH has offered post-quantum key agreement by default since release 9.0 (April 2022), and mlkem768x25519-sha256 became the default in 10.0 (April 2025). Because the server offers its KexAlgorithms list and the client picks from it, an older client that does not offer a hybrid scheme will negotiate a classical key exchange, and the connection still succeeds. Confirm which key exchange each session actually negotiated, rather than assuming the default was used, by checking the server's log and the client's verbose output with ssh -v.

The opposite change, pinning KexAlgorithms to a shorter list, creates the failures you can see. A stricter list that omits the hybrid entries, or that drops the classical entries older peers depend on, will cause connection failures for clients and appliances that cannot match any offered algorithm. The sshd_config manual page documents that the directive sets the algorithms the server offers, and that the prefixes +, - and ^ can add, remove or move entries. Test a pinned list against every client class in your inventory before you roll it out to a fleet, and keep a rollback path, because the failure shows up at login time for the affected systems.

OpenSSH 10.6 added WarnWeakCrypto to sshd_config, enabled by default, so the server logs when a client uses a key agreement scheme that is not post-quantum safe. Review those log entries to find the peers that still fall back to classical key agreement, since they are your upgrade list. The client-side equivalent arrived in 10.1, and the no-pq-kex flag turns off only that warning. Also check builds: the portable INSTALL file says that a build with --without-openssl includes only a subset of ciphers and algorithms, so confirm which key exchange methods a given build offers with ssh -Q kex before you assume a hybrid scheme is present.

Questions infrastructure teams ask about older OpenSSH clients

Is OpenSSH quantum safe with older clients?

No single answer covers every older client, because the outcome depends on what each client offers during key exchange. OpenSSH's post-quantum key agreement, mlkem768x25519-sha256, became the default in OpenSSH 10.0 on the server side, and it is used only when both ends support it. Clients built from releases before that support, or from libraries that lack it, negotiate a different algorithm, such as curve25519-sha256 or an older ECDH or Diffie-Hellman method, and that connection gets no post-quantum protection. OpenSSH 10.1 added a client warning for non-post-quantum key agreement, and OpenSSH 10.6 added the WarnWeakCrypto setting to sshd_config, enabled by default, so the server can log these connections. Confirm each client's version and key exchange list with ssh -Q kex and check the server logs before drawing a conclusion for a given population.

Which OpenSSH version do we need for older clients?

Version requirements depend on which end you are checking. For the server to offer the hybrid key agreement by default, the OpenSSH release needs to be 10.0 or later, since the OpenSSH post-quantum page says mlkem768x25519-sha256 became the default in that release. OpenSSH has offered sntrup761x25519-sha512 by default since 9.0, and 9.9 added mlkem768x25519-sha256. For clients, the protection only applies when the client also supports the same algorithm, so check each client with ssh -Q kex rather than assuming the version number is enough. The latest release listed on the OpenSSH home page is 10.6, with the portable release 10.6p2, as read on 2026-12-03. Confirm the build your distribution ships, because vendors often backport code or pin an older release.

Does upgrading OpenSSH cost extra?

The post-quantum key exchange in OpenSSH is on by default in current releases and needs no separate purchase, since OpenSSH is released under a BSD-style license. The costs come from the work around it: upgrading packages, testing older clients and appliances, updating distribution or vendor-supplied builds, and any change windows. One-time costs include inventory and testing; recurring costs include keeping builds current as new releases arrive. Costs rise with the number of hosts, the number of distinct client types and the amount of vendor-controlled equipment that cannot be upgraded directly. Ask your distribution or appliance vendor what version they ship and whether they backport changes, and ask any consultant for a fixed-scope quote with the hosts, clients and appliances it covers.

What breaks if we pin the key exchange list?

Pinning KexAlgorithms in sshd_config or ssh_config fixes the list of key exchange methods the server or client offers, and it can stop connections that depend on a method removed from the list. The sshd_config manual lists the default KexAlgorithms, which begin with mlkem768x25519-sha256 and sntrup761x25519-sha512, then curve25519-sha256 and ECDH nistp variants. A pinned list that omits the hybrid entries means connections will use whatever remains, and a list that omits curve25519 or the ECDH methods can cause older clients to fail to connect. Finite field Diffie-Hellman methods are not in the sshd default list, and the OpenSSH 10.0 release notes say finite field key exchange is disabled in sshd by default, so a list that adds them back reintroduces older methods. Test each pinned list against a sample of real clients before rollout, and keep a rollback path.

What should we ask our appliance vendor about OpenSSH?

Ask which OpenSSH version and build the appliance runs, and whether that build includes the hybrid key exchange methods listed on the OpenSSH post-quantum page. Ask whether the vendor backports security changes into an older release, and whether the appliance exposes a KexAlgorithms or equivalent setting you can change. Ask whether the vendor's SSH stack uses OpenSSH at all, since some appliances ship their own implementation. Ask whether the device uses OpenSSL or another library, and if so, which version, because the OpenSSH portable INSTALL file notes that certain library builds support only a subset of algorithms. Ask for a written upgrade path and any published notices, and ask what the vendor has said about post-quantum support in writing rather than relying on the OpenSSH project's statements.

Can our team do this alone or do we need help?

Many infrastructure teams can handle the core work in-house, especially for Linux servers running a current OpenSSH release. Checking versions with ssh -Q kex, reviewing sshd_config, and testing connections are straightforward tasks for administrators familiar with SSH. Help is more useful when the estate includes many distinct clients, vendor appliances that cannot be upgraded directly, or compliance evidence that must be produced for an assessment. DeployOpen plans, implements, tests and documents self-hosted open-source platforms inside the client's infrastructure, and prepares evidence for compliance assessments, but it does not issue audit reports or certifications. Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts. Ask any provider for a written scope that names the hosts, clients and appliances covered.

How DeployOpen helps plan and test OpenSSH post-quantum rollouts

OpenSSH already offers hybrid post-quantum key exchange by default, so most compatibility work is about older clients, network appliances and distribution packages that do not negotiate those settings. DeployOpen maps which of your clients and servers fall into each group, then tests and documents the configuration changes needed to keep connections working.

How we scope

  • We list the OpenSSH client and server versions, distribution packages and appliances in your environment, with their build options.
  • We record which key exchange, host key and signature algorithms each system offers, using the documented defaults for each release.
  • The written scope names the systems covered, the target configuration and the connections that must keep working during the change.

How we build

  • We test connections from older clients and appliances against the proposed KexAlgorithms settings in a staging environment.
  • We check whether builds linked against LibreSSL, OpenSSL, AWS-LC or BoringSSL, or built with --without-openssl, offer the algorithms you need.
  • We prepare the ssh_config and sshd_config changes, including the + and - prefix forms, and test each one before rollout.

How we hand over

  • You receive a compatibility matrix listing each tested system, its negotiated key exchange and any connection that failed.
  • The documentation covers the configuration changes, rollback steps and how to read the WarnWeakCrypto client and server warnings.
  • We walk your administrators through the fleet rollout, so they can repeat the checks on systems we did not test.

How we support

  • Ongoing support is available as a retainer for upgrades, new appliances and changes to OpenSSH releases in your environment.
  • We can retest the compatibility matrix when a client, appliance or distribution package is updated.
  • Continuous testing can cover the SSH endpoints you keep, so regressions are caught before users are affected.

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.