OpenSSH requirements for post-quantum key exchange

OpenSSH has offered hybrid post-quantum key exchange by default since 10.0, so most current releases need no change to negotiate it. Administrators should confirm the release and library build in use, and check that no KexAlgorithms override removes it.

On this page

Which OpenSSH version needs post-quantum key exchange requirements checked

OpenSSH has offered mlkem768x25519-sha256 by default since release 10.0 (April 2025), and sntrup761x25519-sha512 has been a default since release 9.0. For most administrators, the requirement is a release and build check rather than a feature purchase: if the sshd and ssh binaries are at or above the right release and were linked against a suitable crypto library, the hybrid key exchange is already negotiated unless someone has changed the configuration. These facts are as read on 2026-12-03, when the latest release was 10.6 and the latest portable release was 10.6p2. Anyone running sshd or ssh clients on long-lived systems, or any host with a KexAlgorithms override in sshd_config or ssh_config, should check their version and that setting, because either can silently keep a connection on an older key exchange.

The check has two parts. First, confirm the installed version with ssh -V on clients and sshd -t or the package manager on servers, and compare it with the release notes at openssh.org. Distribution packages often carry a backported version number that does not match upstream, so the package changelog is the authority for a patched system. Second, confirm the build. The portable INSTALL file says the hybrid algorithms depend on the underlying libcrypto: OpenSSL 1.1.1 or later, LibreSSL 3.1.0 or later, AWS-LC or BoringSSL are supported, and a build with --without-openssl includes only a subset of ciphers and algorithms. Run ssh -Q kex on each build to see which key exchange names it actually supports, since this output reflects what that binary can offer rather than what the defaults list.

Post-quantum key exchange support by OpenSSH release and build

This table lists each OpenSSH release and build factor that affects hybrid post-quantum key exchange, with the source and read date for each row. Check the release that runs on your servers and clients, then check the libcrypto build, since a build without the required libraries offers a smaller algorithm set. The main takeaway is that hybrid key exchange has been the default since 10.0, while the ML-KEM-1024 name does not appear in any listed source.

Release or buildPost-quantum key exchange and warningsSource and read date
OpenSSH 9.0sntrup761x25519-sha512 is offered by default for post-quantum key agreement, dated April 2022OpenSSH post-quantum page, read 2026-12-03
OpenSSH 9.9mlkem768x25519-sha256 is added alongside sntrup761x25519-sha512OpenSSH post-quantum page, read 2026-12-03
OpenSSH 10.0mlkem768x25519-sha256 becomes the default key agreement scheme, dated April 2025OpenSSH release notes and post-quantum page, read 2026-12-03
OpenSSH 10.1Client warns when a connection negotiates a non-post-quantum key agreement; WarnWeakCrypto controls it, with a no-pq-kex flag to disable only that warningOpenSSH release notes and post-quantum page, read 2026-12-03
OpenSSH 10.6sshd_config adds WarnWeakCrypto, enabled by default, so the server logs clients using non-post-quantum key agreementOpenSSH release notes, read 2026-12-03
OpenSSH 10.6p2 (portable)Latest portable build as of the read date, dated November 5, 2026; confirm its libcrypto support in your own buildOpenSSH home, read 2026-12-03
mlkem768nistp256-sha256Supported key exchange name, not in the default list; confirm before relying on itsshd_config and ssh_config man pages, read 2026-12-03
ML-KEM-1024 key exchangeNo ML-KEM-1024 key exchange name is listed in the sources read; do not assume one existssshd_config and ssh_config man pages, read 2026-12-03
libcrypto build noteOptional libcrypto from LibreSSL 3.1.0 or later, OpenSSL 1.1.1 or later, or AWS-LC or BoringSSL; --without-openssl builds with a subset of algorithmsOpenSSH INSTALL file, read 2026-12-03

Which parts of OpenSSH the key exchange requirement touches

The post-quantum key exchange requirement is set mainly in the client and server KexAlgorithms lists and the libcrypto build underneath them. Host key and certificate signatures are a separate area and are not changed by this requirement, so check them on their own track.

Server KexAlgorithms list in sshd

The KexAlgorithms directive in sshd_config sets which key exchange algorithms the server offers to clients. Its documented default starts with mlkem768x25519-sha256, followed by sntrup761x25519-sha512 and curve25519-sha256, so a server on a default configuration offers a post-quantum hybrid. Check the effective list with sshd -T on each server, since a local override can remove the hybrid entries. Note that mlkem768nistp256-sha256 is supported but is not in the default list, and no ML-KEM-1024 key exchange name appears in the pages read.

sshd_config manual

Client KexAlgorithms default in ssh

The client KexAlgorithms setting in ssh_config controls what the ssh client offers when it connects. Its default also begins with post-quantum hybrid entries, and it then lists the ECDH and finite field Diffie-Hellman names. A client and server negotiate a common algorithm, so a hybrid is used only when both ends offer one. Older clients that lack the hybrid entries will fall back to classical exchange, which is a compatibility question for the fleet.

ssh_config manual

libcrypto build underneath OpenSSH

The portable build of OpenSSH links against a crypto library. The INSTALL file lists LibreSSL 3.1.0 or later, OpenSSL 1.1.1 or later, and AWS-LC or BoringSSL as optional libcrypto choices. A build with --without-openssl supports only a subset of ciphers and algorithms, so it may not offer the hybrid key exchange at all. Confirm the library and its version on each host with ssh -V and the package metadata, because the algorithm list depends on what that library provides.

OpenSSH INSTALL file

WarnWeakCrypto on client and server

WarnWeakCrypto controls warnings when a connection negotiates a key agreement that is not post-quantum. OpenSSH 10.1 added the client warning, and OpenSSH 10.6 added the server-side setting in sshd_config, both enabled by default. The no-pq-kex flag turns off only the key agreement warning. These settings report on negotiated connections and do not change which algorithms are offered, so they help find remaining classical sessions rather than fix them.

OpenSSH post-quantum page

Portable build options that change algorithms

Build flags in the portable release decide which libraries and algorithms are compiled in. The INSTALL file names --without-openssl as a configuration that drops most algorithms, so a custom build can lose the hybrid key exchange even when the release notes list it. Ask whoever builds or packages OpenSSH for the configure options used, and compare them with the upstream defaults before a rollout.

OpenSSH INSTALL file

Checking supported key exchanges with ssh -Q

The command ssh -Q kex lists the key exchange algorithms a given ssh build supports, which is different from what is enabled in configuration. Run it on each client build and compare the output with the KexAlgorithms value in use. If a hybrid name is missing from the output, the build cannot offer it no matter what the configuration says. Use ssh -Q HostKeyAlgorithms separately when checking host key signatures.

ssh_config manual

How the requirement changes by release line and build

OpenSSH 10.x releases use mlkem768x25519-sha256 as the default key agreement scheme. The OpenSSH post-quantum page says it became the default in OpenSSH 10.0 (April 2025), and the 10.0 release notes say the same. On these releases you do not need to add a configuration entry to get post-quantum key exchange, because the default already offers it. The latest release listed on the OpenSSH home page is 10.6, dated October 6, 2026, and the latest portable release is 10.6p2, dated November 5, 2026.

  • Default on: mlkem768x25519-sha256 is offered by default from 10.0 onward, so a stock configuration needs no change for key exchange.
  • Client warning from 10.1: the client warns when a connection negotiates a key agreement that is not post-quantum, and WarnWeakCrypto controls the warning, which is enabled by default.
  • Server logging from 10.6: sshd_config gained WarnWeakCrypto in 10.6, enabled by default, so the server logs clients that negotiate a non-post-quantum key agreement.
  • Signatures are a separate question: the post-quantum key exchange does not change host key or user key signatures. The hybrid ssh-mldsa44-ed25519 signature was enabled in 10.5 and is covered in the signature tabs of this page.
  • Not covered: the facts do not say whether every 10.x point release changed this default, so confirm with ssh -Q kex on each host.

Before you rely on the default, run ssh -Q kex on each host to confirm that the build lists mlkem768x25519-sha256, and check the sshd_config for any KexAlgorithms line that overrides the default.

Steps to confirm post-quantum key exchange on each OpenSSH host

This sequence confirms, host by host, that the installed OpenSSH build can offer hybrid post-quantum key exchange and that the configuration does not remove it, and that a real connection negotiates mlkem768x25519-sha256. It produces a dated record that an administrator can attach to a fleet inventory or a vendor-risk answer. Each step is read-only except the final test connection, which only opens a session.

  1. Record the sshd and ssh versions

    On each host, run sshd -V and ssh -V and record both version strings with the hostname and the date. The OpenSSH release notes list 9.0 as the first release with post-quantum key agreement on by default, 9.9 as the release that added mlkem768x25519-sha256, and 10.0 as the release that made mlkem768x25519-sha256 the default. A host running a release older than 9.9 cannot negotiate mlkem768x25519-sha256 at all, so record the version and mark that host for upgrade before continuing. This step is closed when both strings are written against the host name.

  2. Confirm the libcrypto build

    Check which cryptographic library the binary was built against, because the portable INSTALL file says OpenSSH relies on libcrypto from LibreSSL 3.1.0 or later, or OpenSSL 1.1.1 or later, and that a build made with --without-openssl includes only a subset of ciphers and algorithms. Use the platform's package query or the build configuration output to confirm the library and its version, and check that the build was not made with --without-openssl. Packaged builds from distributions may differ from upstream, so confirm with the package maintainer or the distribution's documentation if the answer is unclear. This step is closed when the library name and version are recorded for each host.

  3. List supported key exchange algorithms per build

    Run ssh -Q kex on each build and save the output. The list should include mlkem768x25519-sha256, which is the hybrid ML-KEM and x25519 scheme. The output reflects what the client binary supports, not what the server will accept, so the server side must be checked separately with sshd -T in the next steps. If mlkem768x25519-sha256 does not appear, the build does not support it and the host cannot negotiate it regardless of configuration. This step is closed when the saved list is attached to the host record and the presence or absence of mlkem768x25519-sha256 is noted.

  4. Review KexAlgorithms overrides in configuration

    Inspect sshd_config and ssh_config, including any files included from directories such as /etc/ssh/sshd_config.d, for any KexAlgorithms line. The sshd_config manual page says that a leading +, - or ^ on the list modifies the default rather than replacing it, while a plain list replaces the default entirely. A plain list that omits mlkem768x25519-sha256 removes post-quantum key exchange, and a leading - on that name disables it. Run sshd -T | grep -i kexalgorithms to see the effective value after all files are read. This step is closed when the effective KexAlgorithms value on each host is recorded and confirmed to include mlkem768x25519-sha256, or the exception is documented.

  5. Check WarnWeakCrypto logs

    The sshd_config manual page documents WarnWeakCrypto, and the OpenSSH 10.6 release notes say the server logs when a client uses a key agreement scheme that is not post-quantum safe, with the option enabled by default. Search the authentication log, typically through journalctl for the sshd unit or the system log on platforms that use one, for messages from the period since the last configuration change. Log messages show clients that are not negotiating post-quantum key exchange, which helps locate older clients still in use. Note that a build older than 10.6 will not produce this warning, so the absence of a message on such a host does not confirm anything. This step is closed when the log search results are recorded, with the release version of each host alongside them.

  6. Test a connection to confirm the negotiated algorithm

    From a client on which ssh -Q kex lists mlkem768x25519-sha256, run ssh -vv user@host exit against each host and find the line that reports the key exchange algorithm chosen during negotiation. The line should name mlkem768x25519-sha256. Because the connection opens a session that is closed at once with exit, no changes are made on the host, but the test should be run in a window approved for the host. If the negotiated algorithm is different, compare it with the effective KexAlgorithms value from the previous step, because a client that offers only a non-post-quantum algorithm will not negotiate the hybrid scheme. This step is closed when the negotiated algorithm name is recorded for each host and matched against the expected value.

What negotiation looks like and where settings can fall back

OpenSSH picks the key exchange from a list that both sides offer. The server offers the algorithms named in its KexAlgorithms directive, the client offers the algorithms in its own KexAlgorithms setting, and the first method that appears in both lists is used for the session. The server's list order matters for the outcome, and a client that offers a post-quantum name only helps if the server also offers it. The sshd_config manual page documents the server default as mlkem768x25519-sha256 first, followed by sntrup761x25519-sha512, curve25519-sha256 and the ECDH entries, and the ssh_config manual page documents the client default, which places the same post-quantum names ahead of the classic ones. Confirm the defaults on each build you run with ssh -Q kex and by reading the effective configuration with sshd -T, because a distribution or a local file can change them.

A configured list replaces the default instead of adding to it. When an administrator writes a KexAlgorithms line with plain names, the default list is discarded and only the named algorithms remain. To keep the defaults and change only part of them, the list must begin with + to append algorithms, or ^ to place them ahead of the defaults, while a leading - removes names. This is the most common way a fleet ends up without post-quantum key exchange: a hardening template written years ago with a plain list silently removes mlkem768x25519-sha256 on servers upgraded since then. Review every KexAlgorithms line in sshd_config, sshd_config.d drop-ins and ssh_config on each host type, and record which operator each one uses.

A client that does not offer the post-quantum name falls back to a classical method. If the client's list lacks mlkem768x25519-sha256 and sntrup761x25519-sha512, the negotiation settles on the first match it finds, which is usually curve25519-sha256 or an ECDH entry such as ecdh-sha2-nistp256, and the session still succeeds. The OpenSSH post-quantum page describes a client warning added in 10.1 for connections that negotiate a non-post-quantum key agreement, controlled by WarnWeakCrypto, and WarnWeakCrypto appears in the 10.6 server release notes as a server-side option that logs the same condition. Because a successful login hides the fallback, the practical check is to inventory the clients that connect to each server, record the key exchange each one negotiates (for example from verbose client output or server logs), and confirm the group of clients that will keep falling back before any configuration change is treated as complete.

What OpenSSH's published sources do not say about post-quantum key exchange

The OpenSSH home, security and README pages, read on 2026-12-03, do not state a post-quantum roadmap, a FIPS position or a CNSA 2.0 position. The manual pages describe the settings but not the timing of changes. The questions below are what to put to the OpenSSH project or to your distribution maintainer before you plan around any of these points.

No post-quantum roadmap published

The OpenSSH home, security and portable README pages, as read on 2026-12-03, do not describe a post-quantum roadmap. The post-quantum page covers what has shipped, not what is planned next. Ask the project whether a roadmap exists, what it covers, and whether it will be published before the next release. If you run a distribution build, ask the maintainer which upstream release it tracks and whether it will carry later post-quantum changes.

OpenSSH post-quantum page

No FIPS or CNSA 2.0 statement

The same pages, and the portable INSTALL and README, do not mention FIPS or CNSA 2.0. A FIPS 140 validation, or a CNSA 2.0 alignment statement, applies to a specific build against a specific cryptographic module, so the upstream sources do not tell you whether any build meets either. Ask the project whether it has a FIPS position or a CNSA 2.0 position. Ask your distribution maintainer whether any packaged build has a validation, and against which module and version.

OpenSSH security page

No ML-KEM-1024 key exchange name

The sshd_config and ssh_config manual pages, read on 2026-12-03, list mlkem768nistp256-sha256 and mlkem768x25519-sha256 among the key exchange names, and list no ML-KEM-1024 name. Ask the project whether an ML-KEM-1024 key exchange is planned and under which name it would appear. If your policy requires a higher security level, check whether that requirement is met by the names listed today before you assume a configuration change will do it.

sshd_config man page

No classical-only sunset date

The release notes and manual pages say post-quantum key exchange is on by default and that WarnWeakCrypto logs classical-only negotiations, but they do not say when classical-only key exchange will stop being allowed. Ask the project whether it has published a date or a plan for removing classical-only key exchange, and what notice it would give. Ask your distribution maintainer whether it would keep classical-only key exchange enabled in packaged builds, and for how long.

OpenSSH release notes

Questions administrators ask about OpenSSH post-quantum key exchange

Is OpenSSH quantum safe?

The sources do not support calling OpenSSH quantum safe, and this page does not treat it as such. What they do show is that OpenSSH has offered hybrid post-quantum key agreement by default since release 10.0, with mlkem768x25519-sha256 as the default key agreement scheme. Key agreement is one part of an SSH connection. Host keys, user keys and certificate signatures are separate, and the sources document post-quantum signature support only in a limited form: the hybrid ssh-mldsa44-ed25519 algorithm added in 10.5 and enabled as a CA signature algorithm in 10.6p2. Confirm each component you rely on against the documentation for your release before recording any answer for it.

Which OpenSSH release do I need for post-quantum key exchange?

OpenSSH 9.0 offered sntrup761x25519-sha512 by default, and 9.9 added mlkem768x25519-sha256. The OpenSSH post-quantum page says mlkem768x25519-sha256 became the default in OpenSSH 10.0, released April 2025, so 10.0 or later is the release that turns it on without configuration. The latest release listed on the OpenSSH home page is 10.6, dated October 6, 2026, and the latest portable release is 10.6p2, dated November 5, 2026. Your distribution may ship an older OpenSSH with backported changes, so check the package version and its changelog rather than assuming the upstream release number applies.

Does post-quantum key exchange in OpenSSH cost extra?

The sources do not state a license fee for OpenSSH, and the project is released under a BSD-style license. The post-quantum key exchange is on by default and needs no customer action, so the direct software cost is the time to upgrade and verify servers and clients. Recurring work comes from patching and from tracking the signature algorithm changes in releases 10.4 through 10.6p2. Costs rise if you run older builds, if your distribution packages need backports, or if you have many hosts to roll out. Ask any vendor or distribution maintainer for the specific upgrade and support terms in writing, because the sources do not give a price or effort figure.

What breaks when I turn on post-quantum key exchange in OpenSSH?

The change is designed to be transparent, but older clients may not offer the hybrid algorithms. If a client supports only classical key exchange, OpenSSH will fall back to a schemes both sides share. Before you change anything, check the negotiated scheme with ssh -Q kex and the server's KexAlgorithms value in sshd_config. Hosts that run --without-openssl builds get only a subset of algorithms, so test those builds before rollout. The 10.1 client warning and the 10.6 server log entry (WarnWeakCrypto) will show connections that do not negotiate a post-quantum scheme, which helps you find clients to update.

What should I ask my OpenSSH vendor or distribution maintainer?

Ask which release and package build include the hybrid key exchange and the ssh-mldsa44-ed25519 signature algorithm, and whether your distribution has backported any of these changes. Ask whether the build was compiled with a libcrypto that supports the algorithms you need: the INSTALL file lists LibreSSL 3.1.0 or later and OpenSSL 1.1.1 or later as options. Ask for the documented default values for KexAlgorithms, HostKeyAlgorithms and CASignatureAlgorithms in your version. Request any published roadmap or notice for post-quantum signatures, since the OpenSSH home page, security page and README do not mention a roadmap, FIPS or CNSA 2.0 as of the date checked.

Can my team do OpenSSH post-quantum changes in-house or does it need outside help?

A team with Linux administration skills can usually verify and change KexAlgorithms settings in-house, because the change is a configuration edit and the defaults already include the hybrid schemes in 10.0 and later. Outside help becomes more useful when you must roll out across a large fleet, rebuild OpenSSH from source against a specific libcrypto, manage host and user key migration for the new signature algorithm, or document the result for an audit. Define the scope in writing before any engagement starts, including which hosts, which releases and which evidence you need, so the work and its cost can be compared on the same basis.

How DeployOpen works on this

DeployOpen helps teams confirm which OpenSSH builds, configuration and client software they run, and then roll out the post-quantum key exchange settings across servers and clients. The work is planned in a written scope, tested in a controlled environment, and handed over with documented settings and evidence. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we scope

  • Inventory the OpenSSH server and client versions and portable builds in use, including the library each build links against.
  • Record the current KexAlgorithms, Ciphers and MACs settings on sshd and ssh_config so the starting point is documented.
  • Agree in writing which hosts, client groups and CA trust files are in scope, and what the written scope excludes.

How we build

  • Confirm that each build offers mlkem768x25519-sha256 in its supported key exchange list, using ssh -Q kex on the binary itself.
  • Test the default key exchange behavior and any KexAlgorithms changes in a staging environment that mirrors production clients.
  • Review the WarnWeakCrypto settings on clients and servers so warnings are expected and logged as intended.

How we hand over

  • Deliver a written record of each host's OpenSSH version, key exchange settings and any tested exceptions for older clients.
  • Provide the rollout steps, rollback steps and configuration changes for sshd_config and ssh_config as reviewed documents.
  • Document which hybrid signature options, such as ssh-mldsa44-ed25519 for CA use, are left unchanged and why.

How we support

  • Retest after OpenSSH releases that change the default key exchange, signature or warning behavior, and report the differences.
  • Track systems that still run older OpenSSH releases and record the interim hardening agreed with each owner.
  • Support fleet-wide rollout and continuous testing through a retainer, with scope confirmed in writing before any change.

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.