OpenSSH older releases and post-quantum cryptography

Servers still running older OpenSSH releases need a version check before any post-quantum planning: post-quantum key agreement has been on by default since 9.0, and the ML-KEM hybrid became the default in 10.0.

On this page

Does an older OpenSSH server support post-quantum key exchange?

If your long-lived server runs an OpenSSH release older than 9.0, it offers no post-quantum key exchange by default. OpenSSH has offered sntrup761x25519-sha512 by default since release 9.0 (April 2022), and mlkem768x25519-sha256 became the default in 10.0 (April 2025). Releases before 9.0 therefore negotiate classical key agreement only, unless someone has added a post-quantum algorithm to the configuration by hand. Confirm the version with sshd -V or ssh -V on each host, since the packaged version on a distribution can differ from the upstream number, and check the build string for the portable release.

This matters most for servers that carry traffic or administrative logins with a long confidentiality lifetime, such as backup hosts, file transfer endpoints, and systems whose session recordings or transferred data must stay private for years. Teams that only run short interactive sessions face less exposure from recorded traffic, but still need an inventory entry. Be aware that key exchange is only one part of the picture. Host keys, user keys and certificate authorities rely on signature algorithms, and a post-quantum key exchange does not change those. Post-quantum signature support in OpenSSH is much newer and is covered on separate pages, so do not treat a server's key exchange setting as evidence about its authentication keys.

For planning, the current OpenSSH release is 10.6, and the latest portable release is 10.6p2, as listed on the OpenSSH home page when read on 2026-12-03. Upgrading to a release at or after 10.0 gives the default post-quantum key exchange without configuration changes, though you should still confirm that the distribution package you use has been rebuilt from a version that includes it. Where a server must stay on an older release for a support reason, you can add a post-quantum algorithm to KexAlgorithms only if that release's manual page lists the name; the sshd_config manual page for your version is the authoritative check.

Post-quantum key exchange by OpenSSH release line

This table compares the post-quantum key exchange behavior of each OpenSSH release line, covering the default key exchange, the post-quantum options available, the WarnWeakCrypto behavior and the date each change was published. Read each row as the state from that release onward, and check the release notes for your exact version before relying on a cell. The main takeaway is that post-quantum key exchange has been on by default since 10.0, while releases before 9.0 are not covered by the facts on this page and need to be confirmed against their own release notes.

Release lineDefault key exchangePost-quantum options presentWarnWeakCrypto behavior and source date
Before 9.0Not stated in the sources on this pageNot stated in the sources on this pageNot stated in the sources on this page. Confirm each release against the OpenSSH release notes.
9.0 to 9.8sntrup761x25519-sha512, offered by default since 9.0 (April 2022)sntrup761x25519-sha512No client or server WarnWeakCrypto warning described for this range in the sources on this page.
9.9sntrup761x25519-sha512 remains the default in the sources on this pagesntrup761x25519-sha512 and mlkem768x25519-sha256, added in 9.9No client or server WarnWeakCrypto warning described for this release in the sources on this page.
10.0 to 10.5mlkem768x25519-sha256, made the default in 10.0 (April 2025)mlkem768x25519-sha256 and sntrup761x25519-sha51210.1 added a client warning for non-post-quantum key agreement, controlled by WarnWeakCrypto and defaulting to enabled. The no-pq-kex flag turns off only that warning.
10.6 and latermlkem768x25519-sha256, as the default key agreement scheme from 10.0mlkem768x25519-sha256 and sntrup761x25519-sha51210.6 added a server WarnWeakCrypto log entry, enabled by default, when a client negotiates a key agreement scheme that is not post-quantum safe. Source: OpenSSH release notes, 10.6 (dated October 6, 2026).

How post-quantum key exchange is turned on and off

In OpenSSH releases that ship it, the post-quantum key exchange is on by default and needs no customer action. The OpenSSH post-quantum page says post-quantum key agreement has been offered by default since release 9.0 (April 2022) using sntrup761x25519-sha512, and that mlkem768x25519-sha256, a hybrid of ML-KEM and x25519, became the default in OpenSSH 10.0 (April 2025). The sshd_config manual page, read on 2026-12-03, lists mlkem768x25519-sha256 first in the documented default KexAlgorithms. The setting is controlled by the KexAlgorithms directive in sshd_config on the server and in ssh_config on the client. Confirm the release on each host with ssh -V and check the effective list with ssh -Q kex, because a distribution build or a local override can differ from the upstream default.

To change the list, prefix the names in KexAlgorithms with + to add algorithms to the default list, - to remove algorithms from it, or ^ to place algorithms ahead of the defaults. A plain list without a prefix replaces the default entirely, which can remove the post-quantum option by accident. The sshd_config manual page states that mlkem768nistp256-sha256 is a supported key exchange name but is not in the default list, so a server that needs it must add it explicitly, for example with +mlkem768nistp256-sha256. The same manual pages list no ML-KEM-1024 key exchange name as read on 2026-12-03, so a reader asking for a stronger ML-KEM parameter set should ask the OpenSSH project directly and should not assume one exists.

A setting like this changes what the connection negotiates. It does not make a server quantum safe. The key exchange protects the session key, while host keys, user keys and certificates are governed by separate settings such as HostKeyAlgorithms, PubkeyAcceptedAlgorithms and CASignatureAlgorithms. OpenSSH 10.1 added a client warning for connections that negotiate a non-post-quantum key agreement, and OpenSSH 10.6 added WarnWeakCrypto to sshd_config, enabled by default, so the server logs such clients. Before rolling a change out, review WarnWeakCrypto, test the +, - and ^ forms on a non-production host, and confirm that older clients still negotiate a key exchange they support.

Which parts of an older OpenSSH install the question touches

An older OpenSSH install can touch post-quantum cryptography in six places: key exchange, host keys, user keys, certificate authorities, the crypto library the build links, and the client side. Each card below states what the older-release answer is and what the sources checked here do not cover, so you know what to confirm on your own systems.

Key exchange (KexAlgorithms)

Post-quantum key agreement is set by KexAlgorithms. The sshd_config manual page lists mlkem768x25519-sha256 as the default from OpenSSH 10.0, and sntrup761x25519-sha512 has been offered by default since release 9.0. Releases before 9.0 do not offer these hybrid schemes, so a server on an older release needs an upgrade or an explicit configuration change to negotiate them. Confirm the version on each host with sshd -V, and check the KexAlgorithms line in effective configuration. The sources do not say which list older builds ship with beyond these defaults.

sshd_config manual

Host keys (HostKey, HostKeyAlgorithms)

HostKey names the private host key files, and HostKeyAlgorithms controls which signature types the server offers for them. The documented defaults include ssh-mldsa44-ed25519, a hybrid ML-DSA 44 with Ed25519 type, but the sources show it enabled only from OpenSSH 10.5. Older servers therefore have no post-quantum host key signature by default, and an existing Ed25519, ECDSA or RSA host key stays in use after an upgrade. Check the HostKey lines and the key types on each host. The sources do not say how clients behave when a host key type changes.

sshd_config manual

User keys (PubkeyAcceptedAlgorithms)

PubkeyAcceptedAlgorithms sets which public key types the server accepts for user authentication. On older releases, user keys are generated and accepted as Ed25519, ECDSA, FIDO security keys or RSA. The post-quantum user key type, ssh-mldsa44-ed25519, appears in the defaults only from OpenSSH 10.5, and the 10.4 experimental version required keys to be regenerated when moving to 10.5. Confirm which key types are in use with ssh-keygen -l -f on each key file. The sources do not say how many user keys in a fleet are currently RSA or ECDSA.

ssh-keygen manual

Certificate authorities (TrustedUserCAKeys, CASignatureAlgorithms)

TrustedUserCAKeys names the file of certificate authority public keys that the server trusts to sign user certificates. CASignatureAlgorithms limits which signature algorithms those authorities may use, and certificates signed with other algorithms are rejected. The default list includes ssh-mldsa44-ed25519 only from OpenSSH 10.6p2, so an older server will reject a post-quantum CA signature. Check each CA key's type with ssh-keygen -l -f. The sources do not say whether certificates signed with the hybrid algorithm are accepted by releases before 10.6p2.

sshd_config manual

Library build (libcrypto and --without-openssl)

The portable build links a cryptographic library, which the INSTALL file lists as LibreSSL 3.1.0 or later, OpenSSL 1.1.1 or later, AWS-LC or BoringSSL. A build configured with --without-openssl includes only a subset of ciphers and algorithms. The sources do not state which algorithms the libcrypto versions in common distributions support, so an older release on an older library may lack the post-quantum key exchange even after the OpenSSH version is raised. Run ssh -V to see the library version and ssh -Q kex to see the algorithms the build supports.

INSTALL file

Client side (ssh -Q kex)

The client's KexAlgorithms default also includes the post-quantum hybrid schemes, and ssh -Q kex lists what the local build supports. OpenSSH 10.1 added a client warning when a connection negotiates a key agreement that is not post-quantum, controlled by WarnWeakCrypto, which is on by default. Clients on older releases will not show that warning and may negotiate classical key exchange only. The sources do not say how older clients or third-party SSH clients behave with the newer defaults, so test representative clients before relying on the server change.

ssh_config manual

How the answer changes for pre-9.0, 9.x and 10.x servers

Servers running OpenSSH releases before 9.0 do not have a post-quantum key exchange enabled by default, according to the facts this page is built on. The OpenSSH post-quantum page dates the first default post-quantum key agreement to release 9.0 in April 2022, so older builds fall outside that default. The sources listed on this page do not describe post-quantum behavior for these releases, so do not infer any capability from their version number alone. Plan an upgrade, or confirm what the release notes for your exact build say.

  • No default post-quantum key agreement: The documented default for the pre-9.0 line is not described as including sntrup761x25519-sha512 or mlkem768x25519-sha256.
  • No hybrid signature support in the sources: The composite ML-DSA 44 and Ed25519 signature scheme arrived in 10.4 as experimental and in 10.5 as enabled, so pre-9.0 builds have no such signatures.
  • Check the vendor package: Enterprise Linux and appliance builds often backport security fixes without changing the version string, so read the package changelog.
  • Note the finite field change: Release 10.0 disabled finite field Diffie-Hellman key exchange in sshd by default, so check whether older clients depend on it.

Before planning any change, record the exact OpenSSH version and package build on each host, and confirm with your distribution or appliance vendor whether a newer post-quantum key exchange was backported.

Why key exchange is not the whole answer

Post-quantum key exchange protects the session keys that encrypt a connection, but it does not cover every place OpenSSH uses public-key cryptography. Host keys, user keys and certificate authorities rely on signature algorithms, and those are a separate decision. OpenSSH's default key exchange list has offered post-quantum hybrids since release 9.0 and changed its default to mlkem768x25519-sha256 in 10.0, yet a server that has a post-quantum key exchange can still authenticate with Ed25519, ECDSA or RSA. Teams planning a migration should treat key exchange and signatures as two separate inventory items, each with its own owner and check.

The documented defaults for signature algorithms are where the picture changes. HostKeyAlgorithms and PubkeyAcceptedAlgorithms default to Ed25519, ECDSA, FIDO security-key types, RSA with SHA-2 and, since 10.5, ssh-mldsa44-ed25519. The CASignatureAlgorithms default for certificate authorities includes ssh-mldsa44-ed25519 as well. The 10.5 release enabled this hybrid of ML-DSA 44 and Ed25519 by default, after its experimental form in 10.4 was not enabled by default. Keys created with that experimental build must be regenerated or removed, so an administrator should check whether any host, user or CA key was generated with an experimental 10.4 binary. Running ssh -Q HostKeyAlgorithms on each build shows what that build supports.

The OpenSSH documentation reviewed here does not list ML-DSA-87 or SLH-DSA, so the pages do not show OpenSSH offering those signature schemes. Confirm this against the current manual pages before recording an answer, because a configuration that accepts only ssh-ed25519 or rsa-sha2 types will not gain post-quantum signatures from a key exchange change alone. Where a signature type is accepted, confirm in the sshd_config and ssh_config manual pages for your release which algorithms are offered, and record the release and the settings in your inventory.

What to do with an older OpenSSH server, in order

This sequence establishes exactly which OpenSSH build is running, what key exchange it offers and actually uses, which clients connect, and whether to upgrade or apply interim settings. Each step ends with a recorded check, so the result can be shown to an auditor.

  1. Record the sshd version and portable build

    Run sshd -V on the server, or check the installed package version with your package manager, and record the exact version string. Note whether the build is the portable release from openssh.org or a distribution package, because distributions often backport fixes without changing the version number. The step is closed when the version string and build source are written into the inventory record for that host.

  2. List key exchange algorithms the build supports

    Run ssh -Q kex on the same server build to list the key exchange algorithms that binary supports. Check whether mlkem768x25519-sha256 and sntrup761x25519-sha512 appear in the output. Older builds may not list the hybrid post-quantum names at all, so a missing name is a finding to record, not an assumption to fill in. The step is closed when the full list is saved next to the version record.

  3. Check the effective KexAlgorithms setting

    Run sshd -T and read the effective kexalgorithms line, which shows the list the server will actually offer after all configuration files and include directives are applied. A build can support a name that the configuration removes, and the effective value is the one that matters. Compare it with the defaults in the sshd_config manual page for your version. The step is closed when the effective line is recorded and each difference from the default is explained.

  4. Inventory the clients that connect

    Collect the SSH client versions that connect to this server, from authentication logs, a connection audit tool, or the owners of the systems that run them. Group them into families, such as OpenSSH on Linux, OpenSSH on macOS, PuTTY, WinSCP, and embedded or appliance clients, and note the version of each family. Older clients may not offer any post-quantum key exchange, which affects step five. The step is closed when every client family has a recorded version, or an explicit note that its version is unknown.

  5. Choose between upgrading and interim configuration

    Decide whether to upgrade to OpenSSH 10.6p2 or a later portable release, or to apply interim configuration on the current build. The upgrade path is the option that brings the current post-quantum defaults and the 10.6 WarnWeakCrypto logging, and interim settings should only be used where an upgrade is not yet possible. Document the reason for the choice, the owner, and any system that cannot be upgraded, since that system needs a separate record. The step is closed when the decision and its rationale are signed off by the system owner.

  6. Test on a non-production host with each client family

    On a non-production host running the chosen build, reconnect from one client from each family in the inventory and record the negotiated key exchange for each connection. The connection log or the verbose client output with ssh -v shows the algorithm used. Confirm that clients without post-quantum support still connect if the business requires it, because a configuration that blocks them will break those systems. The step is closed when each client family has a recorded result, with its negotiated key exchange and any failure noted.

  7. Record the result for audit

    Write the final state into the audit record: the sshd version and build source, the effective KexAlgorithms line, the client inventory with the negotiated key exchange for each family, the upgrade or interim decision, and the test results. Include the date of each check, since the state of a build and its configuration can change. Keep the record with the host inventory so an assessor can trace each claim to its evidence. The step is closed when the record is filed and the host owner has acknowledged it.

What the sources do not publish for older releases

The OpenSSH sources cover post-quantum key exchange in detail for recent releases but say little about older ones, and they say nothing on several points that long-lived systems depend on. The cards below list what to ask the OpenSSH project, the distribution maintainer or the appliance vendor before planning a change.

No per-release post-quantum list before 9.0

The OpenSSH post-quantum page states that post-quantum key agreement has been on by default since release 9.0 (April 2022), using sntrup761x25519-sha512. The sources reviewed do not list which post-quantum key exchange names, if any, appear in releases before 9.0. Servers on 8.x or earlier should not be assumed to offer any post-quantum key exchange. Check the installed version with sshd -V and confirm the offered names with ssh -Q kex on the build in use, and ask the distribution maintainer which upstream release a packaged version corresponds to.

OpenSSH post-quantum page

No FIPS, CNSA 2.0 or roadmap statement

The OpenSSH home page, security page and portable README, as read on 2026-12-03, do not mention FIPS, CNSA 2.0 or a post-quantum roadmap. The INSTALL file does not mention FIPS either. Teams that must show a validated module or a federal alignment path cannot take that from these pages. Ask the OpenSSH project in writing whether any FIPS or CNSA 2.0 position exists, and ask the distribution maintainer whether the packaged build uses a FIPS-validated crypto library.

OpenSSH security page

No ML-KEM-1024 key exchange name

The sshd_config and ssh_config manual pages, as read on 2026-12-03, list mlkem768nistp256-sha256 as a supported key exchange name that is not in the default list. They list no ML-KEM-1024 key exchange name. Teams that require a higher ML-KEM parameter set for key exchange should not assume it exists in any release reviewed. Confirm the list with ssh -Q kex on the target build and ask the OpenSSH project whether a higher parameter set is planned.

sshd_config man page

No ML-DSA-87 or SLH-DSA signature

The signature algorithm added in OpenSSH 10.5 is ssh-mldsa44-ed25519, a hybrid of ML-DSA 44 and Ed25519. The sshd_config manual page and the release notes do not list ML-DSA-87 or SLH-DSA signature types. Certificate authorities and host or user keys that need those parameter sets have no documented option here. Ask the OpenSSH project whether either is planned, and ask appliance vendors whether their firmware accepts any signature type beyond ssh-mldsa44-ed25519.

OpenSSH release notes

No backport policy for distribution builds

The sources reviewed describe upstream releases only. They do not state whether post-quantum key exchange or the hybrid signature was backported to older releases by any distribution, or how long older branches receive security fixes. A distribution build labeled 8.x may or may not carry the same options as the upstream release it resembles. Ask the distribution maintainer which post-quantum features are present in each package version, whether they are backported, and what the support window is for the branch in use.

OpenSSH home

Decision path for an older OpenSSH server

The path starts with the installed version, since releases before 9.0 have no default post-quantum key exchange and call for an upgrade plan. Releases from 9.0 to 9.8 need a check that KexAlgorithms includes sntrup761x25519-sha512 or mlkem768x25519-sha256. Release 9.9 and later should confirm that mlkem768x25519-sha256 appears in the effective list, using ssh -Q kex on the build. Finally, review HostKeyAlgorithms, PubkeyAcceptedAlgorithms and CASignatureAlgorithms, then record the results and test them from a real client.

Decision steps for checking post-quantum key exchange on an older OpenSSH server.

Questions engineers and vendor-risk reviewers ask about older OpenSSH servers

Is an older OpenSSH server quantum safe?

No older OpenSSH release can be described as quantum safe, and the sources reviewed here do not support that claim for any version. What the sources do show is narrower: OpenSSH has offered post-quantum key agreement by default since release 9.0 (April 2022), using sntrup761x25519-sha512, and the hybrid mlkem768x25519-sha256 became the default in 10.0 (April 2025). A server running a release before 9.0 has no post-quantum key agreement in its defaults. Host keys and user keys still rely on classical public-key algorithms such as Ed25519, ECDSA and RSA in every release covered here, so key agreement is only one part of the picture. Confirm the exact release and build on each server with sshd -V and ssh -Q kex, since the list of supported algorithms depends on the build.

Which OpenSSH version do we need for post-quantum key exchange?

For default post-quantum key agreement, the sources point to OpenSSH 9.0 or later, which offers sntrup761x25519-sha512 by default. For the hybrid ML-KEM default, the sources point to OpenSSH 10.0 or later, where mlkem768x25519-sha256 became the default key agreement scheme. Releases from 9.9 onward also list mlkem768x25519-sha256 as an available option. Both the server and the client need to support the algorithm for it to be negotiated, so an older client can still fall back to a classical scheme. The current release listed on the OpenSSH home page is 10.6 (October 6, 2026), with portable 10.6p2 (November 5, 2026), as read on 2026-12-03. Check your distribution's package version, because distribution builds may carry different patches or library backends.

Does upgrading OpenSSH cost extra?

The OpenSSH project itself is released under a BSD-style license, so the software has no license fee to pay. The cost of an upgrade comes from the work around it: planning the version, testing against your clients, appliances and automation, scheduling maintenance windows, and rolling the change across the fleet. If your servers run a Linux distribution, the upgrade may come through the vendor's package channel, and whether that channel still ships a recent OpenSSH depends on the distribution's support policy. Vendor-supported appliances or managed file transfer products may ship their own OpenSSH build, and you would need a written answer from that vendor on when a post-quantum-capable build arrives. Ask any quote to separate labor, testing, rollback planning, and any support contract, and to state which items are one-time and which recur.

What breaks when we upgrade OpenSSH?

The main compatibility risk is with older clients and devices that cannot negotiate the newer key exchange algorithms. The KexAlgorithms directive in sshd_config sets what the server offers, and its documented default includes the post-quantum and curve-based options together with ECDH. If a client offers none of them, the connection fails. Administrators who have pinned KexAlgorithms to an older list, or who have added legacy options, need to review those settings before the upgrade, because a change in default can alter negotiation. Network appliances, backup agents and scripted transfers are the usual places where an old client hides. Test each one against a staging server, and keep the prior release available for rollback. The sshd_config and ssh_config manual pages document the prefix operators (+, - and ^) you can use to adjust the list without replacing it.

What should we ask our vendor or Linux distribution about OpenSSH?

Ask which OpenSSH version and build your product or distribution ships, and whether it is the upstream portable release or a patched fork. Ask whether the build is linked against a library that supports the post-quantum algorithms, since the portable INSTALL notes say builds with --without-openssl include only a subset of ciphers and algorithms. Ask whether mlkem768x25519-sha256 and sntrup761x25519-sha512 are compiled in and enabled by default, and whether any vendor setting overrides the KexAlgorithms default. Ask for the date a post-quantum-capable build will ship, and whether there is a published support window for the release you run. Ask whether the vendor has published any post-quantum roadmap for OpenSSH itself, since the sources reviewed here do not describe one. Request the answers in writing, with the version and build named, so the evidence can go into your inventory.

Can our own team upgrade OpenSSH, or do we need outside help?

Many teams can carry out the technical steps themselves: checking the installed release, reading the KexAlgorithms defaults, testing a staging server against a sample of clients, and rolling the new version through configuration management. The harder parts are usually inventory and testing. You need to know every client, appliance and script that connects to each server, and which of them cannot negotiate a newer scheme. DeployOpen can plan the migration, test the server and client paths, and document the results, while your team keeps ownership of the systems, the change windows and the final decisions. Engagements are scoped and agreed in writing before work starts, so the boundary of responsibility is clear from the beginning. Whether outside help is worth it depends on how many servers you run and how many legacy clients depend on them.

How DeployOpen helps plan and test OpenSSH post-quantum readiness

Teams running older OpenSSH releases often need a clear view of what the installed version supports before deciding on changes. DeployOpen works inside your own infrastructure to inventory those servers and clients, test the settings that matter, and hand over a documented plan your administrators and security reviewers can check.

How we scope

  • We confirm which OpenSSH versions and portable builds are running on each server and client, including the libcrypto each one links against.
  • Written scope defines which hosts, sshd_config and ssh_config files, and host or user key types are in and out of the engagement.
  • We record which systems cannot be upgraded soon, so interim hardening can be planned for them separately from the upgrade path.

How we build

  • We test KexAlgorithms, Ciphers and MACs changes on staging hosts running the same OpenSSH release as production.
  • We check whether a given older build offers mlkem768x25519-sha256 and what fallback an older client negotiates when it does not.
  • We verify WarnWeakCrypto and HostKeyAlgorithms behavior on each release, and test signature settings against your certificate authority setup.

How we hand over

  • You receive a written record of each host's OpenSSH version, the settings tested, and the results observed on that version.
  • The handover lists the configuration files changed, the reasoning for each change, and rollback steps for every server touched.
  • Open items are listed with the vendor or distribution documents to confirm, such as release notes for the exact version you run.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support is available as a retainer for upgrades, re-testing after OpenSSH releases, and fleet-wide configuration changes.
  • Retesting after each OpenSSH release can confirm whether a previously tested setting still behaves as documented.

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.