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 build | Post-quantum key exchange and warnings | Source and read date |
|---|---|---|
| OpenSSH 9.0 | sntrup761x25519-sha512 is offered by default for post-quantum key agreement, dated April 2022 | OpenSSH post-quantum page, read 2026-12-03 |
| OpenSSH 9.9 | mlkem768x25519-sha256 is added alongside sntrup761x25519-sha512 | OpenSSH post-quantum page, read 2026-12-03 |
| OpenSSH 10.0 | mlkem768x25519-sha256 becomes the default key agreement scheme, dated April 2025 | OpenSSH release notes and post-quantum page, read 2026-12-03 |
| OpenSSH 10.1 | Client warns when a connection negotiates a non-post-quantum key agreement; WarnWeakCrypto controls it, with a no-pq-kex flag to disable only that warning | OpenSSH release notes and post-quantum page, read 2026-12-03 |
| OpenSSH 10.6 | sshd_config adds WarnWeakCrypto, enabled by default, so the server logs clients using non-post-quantum key agreement | OpenSSH 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 build | OpenSSH home, read 2026-12-03 |
| mlkem768nistp256-sha256 | Supported key exchange name, not in the default list; confirm before relying on it | sshd_config and ssh_config man pages, read 2026-12-03 |
| ML-KEM-1024 key exchange | No ML-KEM-1024 key exchange name is listed in the sources read; do not assume one exists | sshd_config and ssh_config man pages, read 2026-12-03 |
| libcrypto build note | Optional 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 algorithms | OpenSSH 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.
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 manuallibcrypto 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.
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 pagePortable 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 fileChecking 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.
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 kexon 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.
OpenSSH 9.x releases are split by minor version. Release 9.0 (April 2022) made sntrup761x25519-sha512 the default post-quantum key agreement, and 9.9 added mlkem768x25519-sha256 as an available option. On a 9.x release, the default offers sntrup761x25519-sha512, so you do not get mlkem768x25519-sha256 unless the release is 9.9 or later and it is in the KexAlgorithms list.
- 9.0 to 9.8: the default post-quantum exchange is sntrup761x25519-sha512. The facts do not list mlkem768x25519-sha256 for these releases.
- 9.9 and later within 9.x: mlkem768x25519-sha256 is available. Check whether it is in the default list on your build with
ssh -Q kex, since the facts describe 9.9 as adding it without stating whether it became the default. - Do not assume the 10.x default: a host on 9.x that has not been upgraded does not get the 10.0 default change.
- Compare the two names: sntrup761x25519-sha512 and mlkem768x25519-sha256 are different hybrid schemes, so a configuration that names one does not select the other.
- Not covered: the facts do not state the exact default list for each 9.x point release, so check it on the host rather than reading it from a version number.
Run ssh -Q kex on each 9.x host and record the result, because the answer depends on the minor version and not only the major line.
The facts do not cover post-quantum key exchange defaults for releases before 9.0. The OpenSSH post-quantum page dates the first default post-quantum exchange to release 9.0 (April 2022), and the supplied facts name no post-quantum key exchange default for earlier releases. Treat any release before 9.0 as having no post-quantum default you can rely on, and confirm the actual key exchange list on the host instead of inferring it.
- No documented default: the facts give no post-quantum default for releases before 9.0.
- Check the algorithm list: run
ssh -Q kexon the host to see what the build offers, since that output is the only reliable source for your installed release. - Consider the upgrade path: the facts do not describe an upgrade path from pre-9.0 releases, so plan the move to a supported release separately. The sibling topic on older OpenSSH releases covers the planning.
- Interim hardening: the facts do not give specific interim settings for old releases, so ask the vendor or distribution which key exchange algorithms the build offers.
- Distribution packages: the release of a distribution package may not match the upstream OpenSSH release number, so confirm the version your packages report.
For each host on a release before 9.0, record the output of ssh -Q kex and the version from ssh -V, then mark the post-quantum requirement as unconfirmed until the list shows a post-quantum scheme.
Portable OpenSSH builds depend on the cryptographic library they link against. The OpenSSH INSTALL file says the library can be LibreSSL 3.1.0 or later, OpenSSL 1.1.1 or later, or optionally AWS-LC or BoringSSL. A build linked against an older library, or built with --without-openssl, may not offer the same key exchange algorithms as a standard build, so the release number alone does not tell you what the build supports.
- Linked library version: a portable build needs LibreSSL 3.1.0 or later, or OpenSSL 1.1.1 or later, under the documented requirements in the INSTALL file.
- Without OpenSSL: the INSTALL file says a --without-openssl build includes only a subset of ciphers and algorithms, so check the key exchange list on that build.
- Check the build, not the version: run
ssh -Q kexon the built binary, since two builds with the same version can offer different algorithms. - Portable release reference: the latest portable release is 10.6p2, dated November 5, 2026, according to the OpenSSH home page.
- Not covered: the facts do not say which library version enables each post-quantum scheme, so confirm the exact behavior for your library build.
Before you deploy a portable build, record the library it links against and the output of ssh -Q kex, and check whether the build was configured with --without-openssl.
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.
Record the sshd and ssh versions
On each host, run
sshd -Vandssh -Vand 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.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.
List supported key exchange algorithms per build
Run
ssh -Q kexon 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 withsshd -Tin 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.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 kexalgorithmsto 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.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.
Test a connection to confirm the negotiated algorithm
From a client on which
ssh -Q kexlists mlkem768x25519-sha256, runssh -vv user@host exitagainst 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 pageNo 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 pageNo 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 pageNo 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 notesQuestions 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.

