How to roll out post-quantum SSH across servers and automation

Post-quantum SSH key exchange is rolled out by upgrading servers, checking KexAlgorithms settings, aligning clients and libraries, and handling automation and jump hosts in stages. The OpenSSH, OpenBSD, libssh, Go and RFC sources listed on this page set the versions and dates to check against.

On this page

How do you roll out post-quantum SSH across a mixed estate?

The rollout is staged. First, upgrade any SSH server that lacks post-quantum key exchange support, then remove any KexAlgorithms setting that disables the post-quantum methods, and only then bring clients, libraries and automation to versions that negotiate them. System administrators, platform and automation teams, and the owners of jump hosts are the people affected, because a connection is only as post-quantum as the weakest server or client on its path. The post-quantum methods that OpenSSH and the IETF define are hybrids that combine a post-quantum algorithm with X25519 ECDH, so they are not a replacement for X25519 but an addition to it. The sources set the order in which to upgrade, not a date by which you must finish.

Start with servers, because they are the easiest place to find a blocker. Check the installed OpenSSH version and any KexAlgorithms entries in sshd_config, since a line that restricts key exchange to classical methods will keep post-quantum methods from being offered even on a current build. Where a server cannot be upgraded, the OpenSSH post-quantum page suggests silencing the warning selectively instead of globally. For example, WarnWeakCrypto no-pq-kex can be set under a Match host block in ssh_config so that only the affected hosts are exempted. The OpenBSD sshd_config page says those warnings are logged on the server, so keep them visible in your log pipeline and track each exemption as an open item rather than a permanent setting. Use ssh -Q kex on each client to see which key exchange methods it supports before you change anything.

Where SSH uses public-key cryptography today and which parts a rollout changes

This table lists the three places SSH relies on public-key cryptography, what each one does under RFC 4253, and whether the post-quantum key exchange methods change it. Use it to decide which items a server, client or automation upgrade alters now and which ones remain classical until the standards and products cover them.

Where SSH uses itWhat it does per RFC 4253Touched by post-quantum key exchange?
Key exchangeClient and server agree on a shared secret that protects the session. The method sets how that secret is derived.Yes
Host key signature over the exchange hashThe server signs the exchange hash H with its private host key, and the client verifies that signature to authenticate the server for this exchange.No
User authentication keysThe client proves possession of a user key pair to the server, which checks the signature against the public key in authorized_keys or a certificate authority.No
Host and user signature algorithms in OpenSSH 10.6OpenSSH 10.6 enables ssh-mldsa44-ed25519 in default HostKeyAlgorithms and PubkeyAcceptedAlgorithms lists, but the sources listed here do not cover whether this changes the host or user signature step in a live rollout.Not applicable
Hybrid key exchange methodsmlkem768x25519-sha256 and related methods derive the shared secret from both the ML-KEM secret and the ECDH secret, so both parts apply in the same exchange.Yes
Server and client settingsKexAlgorithms and WarnWeakCrypto in ssh_config and sshd_config control which key exchange methods are offered and whether warnings are logged.Not applicable
Signing keys retired before a quantum computer existsOpenSSH's post-quantum page says signature keys carry no store-now-decrypt-later risk, so the urgency for them is retiring classical signature keys on their own schedule.No

What the standards say about post-quantum SSH key exchange

Two RFCs define the post-quantum SSH key exchange methods an administrator will see negotiated. RFC 10042, published in August 2026 as an Informational RFC and not an Internet Standards Track specification, defines three hybrid methods: mlkem768nistp256-sha256, mlkem1024nistp384-sha384 and mlkem768x25519-sha256. Each combines ML-KEM (FIPS 203) with ECDH, and the shared secret is derived from both the ML-KEM secret and the ECDH secret, so a connection relies on both parts in the same exchange. RFC 9941, published in April 2026 as an Informational RFC, defines a second hybrid, sntrup761x25519-sha512, which pairs Streamlined NTRU Prime sntrup761 with X25519 and SHA-512. Because both documents are Informational, the reader should not treat them as settled Internet Standards. Confirm the exact method names your servers and clients advertise against the RFC text before writing them into configuration.

Both RFCs build on the base protocol in RFC 4253, which still governs the transport, the exchange hash and the way the server signs that hash with its host key. RFC 10042 keeps the RFC 4253 limits of 32768 bytes of payload and 35000 bytes of packet, and it defines no new behavior for oversized packets. That matters for automation because post-quantum key exchange messages can be larger than classical ones, so any tooling, proxy or jump host that enforces a fixed buffer should be tested with a post-quantum handshake before rollout. The RFCs also do not describe how such failures appear in logs, so confirm the behavior of each product you run rather than assuming a clean error.

For signature keys, the picture is less settled. The IETF individual Internet-Draft draft-sfluhrer-ssh-mldsa-08, "SSH Support of ML-DSA", is dated 28 August 2026 and has intended status Informational. It shows no working group adoption and expires on 1 March 2027, so it should not be treated as a standard that host or user keys can depend on. Plan host and user key changes around what your OpenSSH and library versions actually support, and check the draft's status again before the expiry date. Any automation that tracks these method names should be reviewed when the status changes.

Which servers, clients and libraries have shipped post-quantum key exchange

OpenSSH is the implementation most estates run on servers and workstations, and its release history sets the baseline for post-quantum key exchange. OpenSSH 10.0, released on 2025-04-09, made the hybrid method mlkem768x25519-sha256 the default for key agreement. That method combines ML-KEM with X25519, so a connection uses both parts of the exchange. OpenSSH has also added post-quantum signature support in stages, which matters for host and user keys rather than for the session itself.

  • Default key exchange since 10.0: mlkem768x25519-sha256 is the default from OpenSSH 10.0 (2025-04-09), so hosts and clients on that version or later should negotiate it without extra configuration unless a setting overrides it.
  • Experimental signatures in 10.4: OpenSSH 10.4 (2026-07-06) added experimental support for a composite ML-DSA 44 and Ed25519 signature scheme, not enabled by default, with keys generated using ssh-keygen -t mldsa44-ed25519.
  • Hybrid signature enabled in 10.6: OpenSSH 10.6 (2026-10-06) enabled ssh-mldsa44-ed25519 and states that keys generated with the earlier experimental support must be regenerated or removed.
  • Bugfix release 10.6p2: OpenSSH 10.6p2 (2026-11-05) enables ssh-mldsa44-ed25519 as an allowed CA signature algorithm.
  • DSA removal: OpenSSH 10.0 removed DSA support, so automation that still relies on ssh-dss keys will fail on current OpenSSH.

Confirm the exact version on each host with ssh -V, and check the release notes for the version you run before assuming a feature is present.

What changes in size, compatibility and logs during the rollout

Post-quantum key exchange changes what goes over the wire, so the first rollout check is message size. RFC 10042 notes that post-quantum key exchange messages can be large, and it keeps the RFC 4253 limits of 32768 bytes of payload and 35000 bytes of packet. It defines no new behavior for oversized packets. Before you move a server or client, confirm that the hybrid methods (mlkem768x25519-sha256, mlkem768nistp256-sha256 and mlkem1024nistp384-sha384) complete a handshake in your environment, especially on jump hosts, bastions and any path through a proxy or appliance that inspects or rewrites SSH traffic. The hybrid shared secret uses both the ML-KEM part and the ECDH part within the same exchange, so a connection depends on both. Treat a failed handshake on a large exchange as a finding to investigate, not something the standard will resolve for you.

The WarnWeakCrypto setting in ssh_config controls warnings on the client, and the same name in sshd_config controls logging on the server. The value yes is the default and logs all warnings. The value no turns warnings off. The value no-pq-kex disables only the warnings about key exchange that is not post-quantum. The OpenSSH post-quantum page suggests using no-pq-kex selectively, for example under a Match host block in ssh_config, for servers that cannot be upgraded yet. Keep those exceptions in version control with an owner and a retirement date, and check server logs during the rollout for connections that do not use post-quantum key exchange. Those log entries are your inventory of hosts still negotiating classical key exchange.

Automation that still uses DSA keys needs attention before the rollout. OpenSSH 10.0, released on 9 April 2025, removed DSA support, so any scripts, deployment tools or CI jobs that authenticate with ssh-dss keys will fail against current OpenSSH. Search your inventory for ssh-dss in key files, authorized_keys entries and HostKeyAlgorithms or PubkeyAcceptedAlgorithms settings, and replace those keys before you change key exchange. Confirm with each client's documentation which key exchange methods it supports, and list them with ssh -Q kex on the client you will run.

Which consequences to plan for in servers, clients and automation

Moving SSH to post-quantum key exchange and keys touches servers, clients, libraries and scripts in different ways. The cards below cover the consequences most likely to break a rollout or leave a gap, so each can be inventoried and tested before a change window.

Oversized key exchange packets

Post-quantum key exchange messages are larger than classical ones. RFC 10042 keeps the RFC 4253 limits of 32768 bytes of payload and 35000 bytes of packet, and it defines no new handling for oversized packets. Test a hybrid key exchange through every jump host, proxy and load balancer on the path, and confirm that none of them rejects or truncates the larger handshake.

RFC 10042

Warnings for non-post-quantum connections

OpenSSH clients warn by default when a connection does not use post-quantum key exchange, and the server logs the same condition. Inventory which hosts will trigger these warnings and which of them cannot be upgraded. For hosts that cannot be upgraded, the WarnWeakCrypto no-pq-kex setting can be scoped to a Match host block in ssh_config, so the warning is silenced only where the risk has been accepted.

ssh_config manual

DSA removal in OpenSSH 10.0

OpenSSH 10.0, released on 9 April 2025, removed DSA support. Any automation, deploy script or legacy account that still relies on ssh-dss keys will fail when it connects to a current OpenSSH host or client. Find these keys before upgrading, and replace them with a supported key type rather than assuming the older configuration still works.

OpenSSH release notes

Moving libssh to 0.12.1

libssh 0.12.0 prefers the post-quantum hybrid methods, but its 0.12.1 release, dated 21 July 2026, fixes a parameter size mismatch in mlkem768x25519-sha256. Applications and tools built on libssh 0.12.0 have a documented reason to move to 0.12.1 or later. Check each product's bundled libssh version, since many applications ship their own copy and will not pick up a system update.

libssh 0.12.1 announcement

Go automation built before Go 1.24

The Go ssh package method mlkem768x25519-sha256 depends on the crypto/mlkem package, which arrived with Go 1.24. Go-based automation, scanners and bastion tools compiled with an older toolchain cannot negotiate that method. Rebuild these binaries with Go 1.24 or later, then confirm the negotiated method in a test session instead of assuming the build alone is sufficient.

Go x/crypto commit

Regenerating keys from experimental ML-DSA

OpenSSH 10.4 added experimental, non-default support for the composite ML-DSA 44 and Ed25519 signature scheme. OpenSSH 10.6, released on 6 October 2026, states that keys generated with that earlier experimental support must be regenerated or removed. Find any user or host keys created with ssh-keygen -t mldsa44-ed25519 and plan their replacement before relying on them for authentication.

OpenSSH release notes

What to do in order: inventory, configure, test and roll out

This sequence moves an SSH estate to post-quantum key exchange in a controlled order, so each server, client, jump host and automation job is known, tested and recorded before the change reaches production. The result is a dated record of what negotiates post-quantum key exchange and which exceptions remain open.

  1. Inventory servers, clients, jump hosts and automation

    Build a list of every SSH server, client, jump host and automated job that connects over SSH, and record the SSH version and any KexAlgorithms setting on each. Assign an owner to each entry, since the owner will later confirm the test result. The step is done when every host and job has a row with its version and KexAlgorithms value, and no entry is left blank.

  2. Check servers for settings that disable post-quantum methods

    On each server, look for a KexAlgorithms setting that removes the post-quantum methods from the allowed list. The OpenSSH post-quantum page recommends this check because such a setting blocks the methods even on a current release. Where a server lacks post-quantum support, plan an upgrade for it. The step is done when every server is marked either as allowing post-quantum methods or as scheduled for upgrade.

  3. List client key exchange methods with ssh -Q kex

    Run ssh -Q kex on a representative set of client machines and on each client build used by automation, and save the output with the host name and client version. The OpenBSD ssh_config manual page documents this command as the way to list the key exchange algorithms a client supports. The step is done when each client build has its list on file and the lists can be compared against the server inventory.

  4. Set WarnWeakCrypto for servers that cannot be upgraded

    For servers that cannot yet be upgraded, set WarnWeakCrypto no-pq-kex under a Match host block in ssh_config, so that only the post-quantum warning is silenced for those hosts. The OpenBSD ssh_config page defines this value as disabling only the warnings about non-post-quantum key exchange, and the OpenSSH post-quantum page suggests this selective approach. The step is done when each exception is limited to a named host and recorded with a reason.

  5. Move libssh and Go automation to supported versions

    Move libssh to 0.12.1 or later, since 0.12.0 has a documented parameter size mismatch in mlkem768x25519-sha256 that 0.12.1 fixes. Move Go-based automation to Go 1.24 or later, because the Go ssh package needs the crypto/mlkem package from that release for this method. Confirm the version of each build in the inventory, not only the version on the developers' machines. The step is done when every libssh and Go build in the inventory reports a version at or above these thresholds.

  6. Test jump host chains end to end

    Test each jump host chain from the client through every hop to the target, and record the key exchange method negotiated at each connection. Large post-quantum key exchange messages are part of the test, since RFC 10042 keeps the RFC 4253 payload and packet limits and defines no new behavior for oversized packets. Include automation that passes through a jump host. The step is done when each chain completes with a post-quantum method at every hop, or the failing hop is listed as an exception.

  7. Ask vendors which key exchange methods they negotiate

    For managed appliances, hosted services and third-party tools that connect over SSH, ask the vendor in writing which key exchange methods it negotiates, and whether it can enable post-quantum methods on its side. Keep the written answer with the inventory row for that product. The step is done when each vendor has a dated written answer on file, and any vendor without a clear answer is recorded as an open exception.

  8. Record the change and every exception

    Keep a single change record that lists each host, client and automation job, the method it negotiates after the change, the date of the test, and the owner who confirmed it. List every exception with its reason, the WarnWeakCrypto setting applied, and the date it should be revisited. The step is done when the record is complete, each exception has an owner, and the record is reviewed by the team that runs the estate.

How the client and server negotiate a hybrid key exchange

The diagram starts when the client connects and lists the key exchange methods it supports, which can be checked with ssh -Q kex. The server selects a hybrid method such as mlkem768x25519-sha256, and both sides derive the shared secret from the ML-KEM part and the X25519 ECDH part, so the connection uses both in the same exchange. The server then signs the exchange hash H with its host key, and the client verifies that signature as defined in RFC 4253. When you check a server, confirm the negotiated method and that the host key signature verifies, and confirm the client and server versions both support the method you expect.

A simplified flow of the hybrid key exchange between an SSH client and server.

Risks in a post-quantum SSH rollout and how to notice them

Most of the risks in an SSH rollout come from settings and tooling that quietly keep classical behavior, or from older components that never negotiate the new methods. Each card names a risk and the check that shows whether your estate is exposed.

A KexAlgorithms setting that disables post-quantum methods

A KexAlgorithms line that lists only classical methods stops a server or client from negotiating the post-quantum hybrids, even when the installed OpenSSH supports them. Older hardening templates and copied configurations often carry this line forward. Review the KexAlgorithms entries in sshd_config and ssh_config, including those inside Match blocks and drop-in files under /etc/ssh. Then run ssh -Q kex on each client image to confirm the post-quantum methods are listed as available.

OpenSSH PQ page

Outdated libssh and Go toolchains in automation

Automation that connects over SSH often embeds its own library rather than the system OpenSSH. libssh 0.12.0 has a parameter size mismatch in mlkem768x25519-sha256 that the 0.12.1 release fixes, so estates on 0.12.0 have a documented reason to upgrade. Go-based tools need the crypto/mlkem package, which arrived with Go 1.24, so binaries built with older toolchains cannot offer that method. Check the libssh version reported by each tool and the Go version in each build pipeline.

libssh 0.12.1 announcement

Keys from experimental ML-DSA support

Keys generated with the experimental ML-DSA 44 and Ed25519 support in OpenSSH 10.4 are not guaranteed to work after the change in OpenSSH 10.6, which states that such keys must be regenerated or removed. Search your key inventory for keys created with ssh-keygen -t mldsa44-ed25519 and for host or user keys carrying the experimental algorithm name. Record which hosts and accounts hold them before changing any configuration, so replacement keys can be deployed in order.

OpenSSH release notes

DSA dependencies after OpenSSH 10.0

OpenSSH 10.0 removed DSA support, so any script, deployment or legacy host that still depends on ssh-dss keys will fail against current OpenSSH. This is a separate risk from post-quantum work, but it surfaces during the same review. Search authorized_keys files, host key directories and automation inventories for DSA key types. Plan replacements before upgrading the server side, because a failed login after an upgrade can look like a post-quantum problem.

OpenSSH release notes

Silenced warnings hiding servers that cannot upgrade

Setting WarnWeakCrypto no in ssh_config removes every warning, including the ones that flag connections without post-quantum key exchange. The OpenSSH guidance suggests a narrower setting, no-pq-kex under a Match host block, and only for servers that cannot be upgraded yet. Search client configs for WarnWeakCrypto no and review the Match blocks that use no-pq-kex. On servers, check the sshd logs, where WarnWeakCrypto warnings are recorded for connections that do not use post-quantum key exchange.

OpenBSD ssh_config

Which parts of post-quantum SSH are not settled yet

Before you set a rollout date for post-quantum SSH, separate what is in place from what is still open. Post-quantum key exchange is already available and is the default in current OpenSSH, through the hybrid method mlkem768x25519-sha256 (OpenSSH 10.0, released 2025-04-09). Post-quantum host and user signatures are not in the same position. The IETF individual Internet-Draft draft-sfluhrer-ssh-mldsa-08, "SSH Support of ML-DSA," dated 28 August 2026, is at intended status Informational, shows no working group adoption, and expires 1 March 2027. Treat its details as provisional until it is adopted or published as an RFC. Check the IETF datatracker entry for draft-sfluhrer-ssh-mldsa before each planning review.

The signature picture is also moving in OpenSSH itself. OpenSSH 10.4 (2026-07-06) added experimental support for a composite scheme combining ML-DSA 44 and Ed25519, not enabled by default, with keys generated by ssh-keygen -t mldsa44-ed25519. OpenSSH 10.6 (2026-10-06) enabled the hybrid ssh-mldsa44-ed25519 signature algorithm, and the release notes say keys generated with the earlier experimental support must be regenerated or removed. OpenSSH 10.6p2 (2026-11-05) then enabled ssh-mldsa44-ed25519 as an allowed CA signature algorithm. The composite algorithm is new, so confirm for each server and client version you run that signing, verification and certificate handling behave as expected before you issue keys in bulk. The OpenSSH release notes record each change, and the OpenBSD sshd_config manual lists the default host and public key algorithms.

The sources on this page do not set a date by which all servers must support post-quantum key exchange, and no deadline is supplied here. Set your own schedule based on your inventory and your risk assessment, and confirm any external deadline with your regulator, customer or contract owner. Watch two things in the meantime: the draft's progress on the IETF datatracker, and the RFC 10042 entry for the hybrid key exchange methods, which is an Informational RFC published in August 2026. The OpenSSH release notes are the authoritative record for what your installed versions actually do, so check them when you upgrade.

Questions administrators ask about rolling out post-quantum SSH

Does post-quantum SSH apply to every server in my estate?

No. Post-quantum key exchange depends on what each server and client runs, not on the protocol alone. A server that lacks post-quantum support cannot negotiate those methods, and the OpenSSH project's recommended fix for such a server is to upgrade it. Before planning, list each host's SSH version and check its KexAlgorithms setting, because a configuration line can disable the post-quantum methods even on a capable server. Confirm which methods your version supports with the vendor documentation or with ssh -Q kex on the client.

How do I check what key exchange a server negotiates?

Run ssh -Q kex on the client to list the key exchange algorithms it supports, then compare that list against the server's KexAlgorithms configuration. The OpenBSD ssh_config manual describes this command, and it shows what the client can offer, not what a given server will accept. To see the negotiated result, use your client's verbose output on a test connection and confirm the method on your own environment. Record the result per host so you can track which servers are still on classical key exchange.

Should I set WarnWeakCrypto to no-pq-kex?

Use it selectively, not as a fleet-wide default. The OpenSSH post-quantum page suggests silencing the warning only for servers that cannot be upgraded yet, for example with WarnWeakCrypto no-pq-kex inside a Match host block in ssh_config. The flag disables only the warnings about non-post-quantum key exchange; the default yes keeps all warnings. On the server side, the sshd_config manual says these warnings are logged, so a silenced client does not hide the event from server logs. Keep the scope narrow and review it as hosts are upgraded.

Should I upgrade legacy hosts or silence their warnings?

Upgrade where you can, and scope a silenced warning only where you cannot. The OpenSSH guidance recommends upgrading a server that lacks post-quantum support. Silencing with no-pq-kex removes the client-side warning but does not add post-quantum protection, so the host stays on classical key exchange. For hosts that must stay on older software for a time, record each one with its owner, the reason it cannot change, and a review date. Confirm current supported versions with the vendor of each host.

What should I ask an SSH vendor about post-quantum support?

Ask for the exact version and edition that includes post-quantum key exchange, and which methods it supports, by name. Ask whether any default configuration disables those methods, and whether the vendor's documentation lists the methods your build uses. For signature keys, ask whether the vendor supports the composite ML-DSA with Ed25519 host or user keys, and which version added it. Request written confirmation for each version you plan to run, and confirm compatibility in your own environment before relying on a vendor's statement.

Can my team roll out post-quantum SSH in-house, or do we need help?

Many teams can do the server and client work in-house, but the scope is wider than a configuration change. The work includes an inventory of hosts and keys, upgrades or documented exceptions for legacy systems, updates to client and automation tooling, and testing of jump hosts and scripted connections. Libraries need checking too: libssh 0.12.0 has a parameter size mismatch in one hybrid method, fixed in 0.12.1 (21 July 2026), and Go-based automation using the mlkem768x25519-sha256 method needs Go 1.24 or later. An outside partner can help with the inventory and testing, and DeployOpen scopes that work in writing before it starts.

Do I need to replace my SSH signature keys now?

Plan the change, but check the current support before you rotate anything. The OpenSSH post-quantum page says signatures do not carry the store-now-decrypt-later risk that applies to key exchange, so the urgency is retiring classical signature keys before a cryptographically relevant quantum computer exists. OpenSSH 10.4 added experimental ML-DSA 44 with Ed25519 keys, and 10.6 enabled the hybrid ssh-mldsa44-ed25519 algorithm, while keys made with the earlier experimental support must be regenerated or removed. The related IETF draft is an individual Informational Internet-Draft with no working group adoption, so confirm support in each product you run before you rely on it.

How DeployOpen helps plan and carry out an SSH post-quantum rollout

DeployOpen starts with an inventory of your SSH servers, clients, jump hosts and automation, then sets the rollout order from what each component can negotiate today. Changes are built and tested in your own environment, documented per host group, and handed over with a rollback path for anything that cannot be upgraded yet.

How we scope

  • We list which servers, clients, jump hosts and automation tools connect over SSH and which key exchange methods each one offers.
  • We check for KexAlgorithms settings that disable post-quantum methods and record which hosts would need an upgrade first.
  • The written scope names the host groups, the automation pipelines and the systems that cannot be upgraded, so the boundaries are agreed before work starts.

How we build

  • We stage changes across test hosts, then production groups, and test client and automation versions against the server settings before rollout.
  • We check libraries used in automation, such as libssh and the Go ssh package, against the versions that support the hybrid key exchange methods.
  • Where a server cannot be upgraded, we scope a narrow ssh_config Match block with WarnWeakCrypto no-pq-kex and document why it exists.

How we hand over

  • You receive a host-by-host record of key exchange settings, client and library versions, and the warnings still open after each stage.
  • Documentation covers how to check negotiated key exchange with ssh -Q kex on clients, and which keys must be regenerated or removed.
  • Signature key changes, such as OpenSSH 10.6 and its ML-DSA 44 and Ed25519 keys, are handed over with a plan your team can follow.

How we support

  • Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.
  • Ongoing upgrades, configuration checks and retesting after each OpenSSH or library release are available as a retainer.
  • Before you rely on any setting, confirm the version and edition you run against the OpenSSH release notes and the vendor documentation for your libraries.

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.