SSH vs TLS: what each protocol is and where key exchange differs
SSH is a remote login and file transfer protocol, and TLS 1.3 is the transport security protocol behind HTTPS. If a vendor, tender or audit asks about post-quantum support, the first thing to establish is which of the two it means, because the answer differs. The key distinction is that SSH negotiates post-quantum methods as named key exchange methods, while TLS 1.3 negotiates them as named groups. The same underlying ML-KEM algorithm may appear in both, but the names, the negotiation fields and the messages that carry them are different, so a yes or no about one protocol does not answer the question for the other.
Network engineers, platform engineers, security engineers and vendor-risk reviewers all meet this question, usually in a questionnaire line asking whether a product supports post-quantum key exchange. For SSH, the relevant reference is RFC 10042, an Informational document published in August 2026, which defines hybrid methods such as mlkem768x25519-sha256. For TLS 1.3, the relevant reference is RFC 10024, a Standards Track document from the same month, which defines hybrid groups such as X25519MLKEM768. Ask the vendor which named method or group its product negotiates, in which version, and whether it is enabled by default, rather than accepting a general statement of support. Confirm the exact version against the vendor's documentation and the RFC text.
How SSH and TLS 1.3 compare on key exchange in the sources
This table sets the defining documents, negotiated items, post-quantum names and message or field names for SSH and TLS 1.3 side by side, as the cited sources give them. Read each row across to see how the same job is specified in each protocol. The main takeaway is that SSH negotiates key exchange methods with dedicated messages, while TLS 1.3 negotiates named groups through extensions and key shares.
| Attribute | SSH | TLS 1.3 |
|---|---|---|
| Defining document | RFC 10042, Informational, August 2026 | RFC 10024, Standards Track, August 2026 |
| Negotiated item | Key exchange method | Named group |
| Post-quantum names defined | mlkem768nistp256-sha256, mlkem1024nistp384-sha384, mlkem768x25519-sha256 | X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024 |
| Message or field carrying the share | SSH_MSG_KEX_HYBRID_INIT (30) and SSH_MSG_KEX_HYBRID_REPLY (31) | key_share extension, with groups listed in supported_groups (RFC 8446) |
| Recommended status | IANA lists all three names as SHOULD for implementation | X25519MLKEM768 is marked Recommended in RFC 10024; the other two are not |
| Where it is supported | OpenSSH 10.0 uses mlkem768x25519-sha256 by default for key agreement | Confirm group support in each TLS stack and version you run |
| Size limits noted in the source | Relies on RFC 4253 minimums of 32768-byte payload and 35000-byte packet; behavior above them is not defined | Client and server shares are fixed per group, for example 1216 and 1120 bytes for X25519MLKEM768 |
What SSH and TLS 1.3 are for, and which document defines their post-quantum key exchange
SSH is a protocol for secure remote login, command execution and file transfer between a client and a server. Its key exchange establishes the session keys that protect everything after the handshake, and in SSH that exchange is negotiated as a named key exchange method. The defining document for the post-quantum hybrid methods is RFC 10042, published in August 2026 as an Informational document rather than on the Standards Track. It was produced from the IETF draft draft-ietf-sshm-mlkem-hybrid-kex-10, and it defines hybrid key exchange that combines ML-KEM with a traditional exchange.
- Method names: RFC 10042 defines three method names, mlkem768nistp256-sha256, mlkem1024nistp384-sha384 and mlkem768x25519-sha256. IANA lists all three as SHOULD for implementation.
- Message flow: The hybrid methods use SSH_MSG_KEX_HYBRID_INIT (message number 30) and SSH_MSG_KEX_HYBRID_REPLY (31) in place of the ECDH and DH init messages used by classical methods.
- Packet size limits: RFC 10042 relies on the RFC 4253 minimums of a 32768-byte uncompressed payload and a 35000-byte packet. It does not define behavior if a hybrid message exceeds those limits.
- OpenSSH defaults: OpenSSH 10.0, released 2025-04-09, uses mlkem768x25519-sha256 by default for key agreement.
- Warnings for weaker methods: OpenSSH 10.1 (2025-10-06) added a warning when a connection negotiates a non-post-quantum key agreement, controlled by the WarnWeakCrypto ssh_config option. OpenSSH 10.6 (2026-10-06) added WarnWeakCrypto to sshd_config, enabled by default. The latest portable release listed is 10.6p2 of 2026-11-05.
SSH is most often met through OpenSSH on Linux, BSD and macOS hosts, bastion hosts, Git hosting over SSH, and automation that uses SSH to reach network devices. Check the negotiated method on each client and server pair, because a connection will use the post-quantum method only when both ends offer it, and confirm the exact OpenSSH version in each environment against the release notes before assuming the default applies.
TLS 1.3 protects web traffic, API calls, mail transport and many other application connections by establishing keys in a handshake before any application data flows. In TLS 1.3 the client lists the groups it supports in the supported_groups extension and sends its key shares in key_share. The server picks one group and replies with its own share. Post-quantum key exchange therefore appears as named groups in this negotiation. RFC 10024, published in August 2026 on the IETF Standards Track, defines three hybrid key agreement groups that combine ML-KEM with an ECDHE exchange. It applies the combination framework described in RFC 9954, published in July 2026 as an Informational document.
- Hybrid group names: RFC 10024 assigns X25519MLKEM768 code point 4588 (0x11EC), marked Recommended. It also assigns SecP256r1MLKEM768 at code point 4587 (0x11EB) and SecP384r1MLKEM1024 at code point 4589 (0x11ED), and neither of those two is marked Recommended.
- Key share sizes: The X25519MLKEM768 client share is 1216 bytes (1184 for ML-KEM-768 plus 32 for X25519) and the server share is 1120 bytes (1088 plus 32). The SecP256r1MLKEM768 client share is 1249 bytes and its server share 1153 bytes. The SecP384r1MLKEM1024 shares are 1665 bytes each way.
- Secret ordering: RFC 10024 orders the secrets differently by group. X25519MLKEM768 places the ML-KEM secret first, while the two NIST-curve groups place the ECDHE secret first, for FIPS reasons.
- ML-KEM foundation: NIST published FIPS 203 as a final standard on 13 August 2024. It names ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The IETF draft draft-ietf-tls-mlkem-11, dated 17 September 2026 and intended as Informational, lists a 32-byte shared secret for all three parameter sets.
- Status of the TLS draft: As of 4 December 2026, draft-ietf-tls-mlkem-11 is in the RFC Editor queue.
TLS 1.3 is met on web servers such as nginx and Apache, on load balancers and reverse proxies, on API gateways, and in client libraries and browsers. Confirm which named groups each library, server and load balancer in your path supports and enables, because a group must be offered by both sides to be used, and check the group names and code points against RFC 10024 rather than against vendor marketing labels.
Four differences between SSH and TLS key exchange that change what a team configures
SSH and TLS both carry post-quantum key exchange, but they name, order and size the pieces differently. Each difference below changes a setting, a check or a decision on at least one side of the connection.
Named methods versus named groups
In SSH, post-quantum key exchange is selected as a named key exchange method, such as mlkem768x25519-sha256, that is negotiated in the KexAlgorithms list. In TLS 1.3, the same kind of exchange is negotiated as a named group in the supported_groups extension. A team that edits one protocol's list will not change the other, so each side needs its own allowed-algorithm review.
RFC 10024 groupsSecret ordering differs by group
RFC 10024 orders the shared secrets differently depending on the group. For X25519MLKEM768, the ML-KEM secret comes first. For the two NIST-curve hybrids, the ECDHE secret comes first. The order is set for FIPS reasons. Teams validating a TLS hybrid implementation should check the ordering for each group they enable rather than assuming one rule applies to all of them.
RFC 10024 textMessage types differ on the wire
The RFC 10042 hybrid methods for SSH send SSH_MSG_KEX_HYBRID_INIT (message number 30) and SSH_MSG_KEX_HYBRID_REPLY (message number 31) in place of the classic ECDH or DH init messages. TLS 1.3 carries the client's share in the key_share extension and the server replies with its own share. Packet captures, protocol analyzers and intrusion detection rules written for one protocol will not recognize the other's messages without changes.
RFC 10042 draftPacket size limits are assumed, not defined
RFC 10042 relies on the RFC 4253 minimums of a 32768-byte uncompressed payload and a 35000-byte packet. It does not define what an implementation should do if a hybrid message exceeds those limits. Teams running SSH with hybrid methods should confirm how their implementation handles oversized key exchange messages, and should not assume the RFC covers that case.
RFC 10042 draftDefault method versus default group
OpenSSH 10.0 uses mlkem768x25519-sha256 by default for key agreement, so a default install already negotiates a post-quantum hybrid method. TLS has no equivalent single default named in these sources. Web servers and TLS libraries set their own group preferences, and the code points each one offers, such as 4588 for X25519MLKEM768, need to be checked per product and version.
OpenSSH release notesWhere SSH and TLS post-quantum key exchange appears in products and versions
In SSH, post-quantum key exchange is already a default in current OpenSSH. OpenSSH 10.0, released 2025-04-09, uses mlkem768x25519-sha256 by default for key agreement, a hybrid of ML-KEM with X25519. OpenSSH 10.1 added a warning when a connection negotiates a non-post-quantum key agreement algorithm, controlled by the WarnWeakCrypto option in ssh_config. OpenSSH 10.6, released 2026-10-06, added the same option to sshd_config and enabled it by default. The latest release listed in the sources is OpenSSH 10.6p2 (portable) of 2026-11-05. Check the release notes for the exact version you run, and confirm the setting in your own configuration, since defaults can be overridden on both client and server.
In TLS 1.3, post-quantum key exchange appears as named groups rather than as SSH key exchange method names. RFC 10024, published in August 2026 on the Standards Track, defines the hybrid groups, including X25519MLKEM768 (code point 4588, marked Recommended), SecP256r1MLKEM768 (4587) and SecP384r1MLKEM1024 (4589), which are not marked Recommended. Clients list the groups they support and send key shares, and the server picks one group. Because the hybrid shares are larger than classical shares, check the handshake sizes for the group you plan to use.
The sources listed on this page do not say which TLS libraries or web servers have adopted these groups, so this page does not state support for any product. Check each product's documentation and release notes for the TLS 1.3 named groups it negotiates, and confirm them against a live handshake in your own environment before you rely on them.
How to work out whether SSH, TLS or both apply to your systems
This sequence sorts your services by the protocol that carries their key exchange, then checks each protocol's software and vendor documentation for post-quantum methods that are offered and enabled. The result is an audit file showing, for each system, which protocol applies and which RFC or product release supports the answer.
List services that terminate SSH and TLS 1.3
Start from your inventory of cryptographic endpoints. For each service, record whether it terminates SSH, TLS 1.3, or both, such as bastion hosts, Git servers, load balancers, reverse proxies and web servers. Mark any service that terminates neither protocol so it does not carry into the later checks. The output is a list where every endpoint has one or more protocol labels, reviewed by the owner of the system.
Check the OpenSSH version and default key agreement
On each server that runs OpenSSH, run
ssh -Vto record the installed version, and checksshd -Tor the configuration file for the KexAlgorithms setting. Compare the result with the OpenSSH release notes. The release notes state that OpenSSH 10.0 uses mlkem768x25519-sha256 by default for key agreement, so a server on an earlier version should be checked against its own vendor's documentation. The output is a record of version and effective key agreement list per host.Check the warning settings for weak key agreement
Confirm whether the warning behavior is configured on each SSH endpoint. The release notes say OpenSSH 10.1 added a warning when a connection negotiates a non-post-quantum key agreement algorithm, controlled by the WarnWeakCrypto ssh_config option, and that OpenSSH 10.6 added WarnWeakCrypto to sshd_config, enabled by default. Record the setting value on each client and server where it applies. This check reports what the software warns about, not whether a connection is secure.
Check TLS libraries and named groups in use
For each load balancer and web server that terminates TLS 1.3, record the TLS library and its version, then list the named groups the endpoint offers. Compare them with the hybrid groups defined in RFC 10024, which lists X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Note that RFC 10024 marks only X25519MLKEM768 as Recommended. Run a handshake test with a client that reports the negotiated group, and record the result for each endpoint.
Check vendor documentation for enabled methods
For every product that terminates SSH or TLS but is not built by your own team, read its vendor documentation for whether a named TLS group or SSH key exchange method is enabled by default and whether it can be turned on. Look for the exact method or group name in the documentation, the product release it applies to, and any stated conditions. If the vendor has published nothing on a point, record that gap and ask the vendor in writing. The output is a list of vendor statements, each tied to a product version.
Record the RFC or release behind each answer
For every endpoint, write down the protocol that applies, the version or release it was checked against, and the source of each answer, whether an RFC number such as RFC 10024 or RFC 10042, an OpenSSH release, or a vendor document with its date. Store this with the inventory so an auditor can trace each answer to its source. Have a second reviewer confirm that each row names a source, and flag any answer that relies on a version you have not confirmed in your own environment.
Common questions about SSH and TLS key exchange
Are SSH and TLS the same protocol?
No. SSH and TLS are separate protocols with different designs, even though both set up encrypted sessions and both negotiate a key exchange. TLS 1.3 (RFC 8446) negotiates key exchange through the supported_groups and key_share extensions, where the client offers groups and the server selects one. SSH negotiates key exchange methods by name. Because the two work differently, post-quantum support has to be added to each one separately, and the names, messages and standards that define that support differ between them.
Which protocol uses post-quantum key exchange by default?
The sources supplied for this page give a default only for SSH. OpenSSH 10.0, released on 2025-04-09, uses mlkem768x25519-sha256 by default for key agreement. The sources do not give a default for TLS, so do not assume one. Check the default in the TLS library and version you run, and check the configuration of each server and client, because a default in one product does not tell you what another product negotiates. OpenSSH 10.1 added a warning when a connection uses a non-post-quantum key agreement algorithm, and OpenSSH 10.6 added the WarnWeakCrypto option to sshd_config, enabled by default.
Does a tender asking for TLS support also cover SSH?
Not automatically. TLS and SSH are separate protocols, so a requirement for TLS support does not by itself cover SSH. The sources describe the TLS hybrid groups in RFC 10024 (Standards Track, August 2026) and the SSH hybrid methods in RFC 10042 (Informational, August 2026) as separate documents. If the tender names both, or if the systems in scope use SSH for administration or file transfer, the requirement has to be stated for each protocol. Ask the bidder which protocols and which versions they cover, and get that list in writing.
Why do RFC 10042 and RFC 10024 have different statuses?
The two documents have different statuses because they were published on different tracks. RFC 10024 is on the IETF Standards Track and defines the TLS 1.3 hybrid groups. RFC 10042 is an Informational document, not a Standards Track document, and it defines the SSH hybrid key exchange methods. A Standards Track status and an Informational status carry different weight in the IETF process, so do not treat the two as equally settled specifications. Check the status line on each RFC before you cite either one in a design or in a compliance answer.
What should I ask a vendor about SSH and TLS key exchange?
Ask for the exact version and configuration of each protocol in scope. For SSH, ask which key agreement method is negotiated by default and whether the product uses mlkem768x25519-sha256 or another post-quantum method. For TLS, ask which named groups are offered and selected, and whether X25519MLKEM768, SecP256r1MLKEM768 or SecP384r1MLKEM1024 are supported. Ask how the vendor tests the negotiated groups and methods and what the fallback is when a peer does not support them. Get the answers in writing, tied to a version number, because support in one release does not show support in another.
Do SSH and TLS use the same post-quantum algorithm?
Both protocols can use ML-KEM, which FIPS 203 defines as a final NIST standard published on 13 August 2024, with the parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The protocols name and combine it differently. TLS 1.3 hybrid groups such as X25519MLKEM768 and SecP256r1MLKEM768 combine ML-KEM with an ECDHE exchange, and RFC 10024 orders the secrets differently for each group. SSH hybrid methods such as mlkem768x25519-sha256 use their own message numbers (30 and 31) and do not share names or messages with TLS. Treat the two as related but separately specified.
Will SSH and TLS upgrades affect each other?
The sources do not describe a direct dependency between an SSH upgrade and a TLS upgrade, so do not assume that changing one changes the other. Each protocol has its own negotiation path, its own configuration keys and its own library. An SSH server that moves to a post-quantum method does not thereby change the groups a TLS endpoint on the same host offers. Plan and test each protocol on its own, and confirm the negotiated method or group on live connections after the upgrade.
How key exchange sits inside an SSH handshake and a TLS 1.3 handshake
The diagram runs two parallel flows. In SSH, the client and server first negotiate a named key exchange method, such as mlkem768x25519-sha256, and then exchange SSH_MSG_KEX_HYBRID_INIT (message number 30) and SSH_MSG_KEX_HYBRID_REPLY (message number 31) as defined in RFC 10042. In TLS 1.3, the client lists its groups in supported_groups and sends its shares in key_share, and the server selects one named group and replies with its own share, as described in RFC 8446 and RFC 10024. Check that both sides support the same method or group, since the two protocols negotiate key exchange in different places.
Key exchange messages in SSH and TLS 1.3 handshakes, side by side.
How DeployOpen helps teams plan SSH and TLS post-quantum key exchange work
DeployOpen works with teams to plan how SSH and TLS negotiate post-quantum key exchange in their own environments. The work starts from the methods and named groups each protocol already uses, then moves to configuration, testing and documentation that the team can review and keep running.
How we scope
- We inventory which SSH servers, clients, TLS terminators and load balancers negotiate key exchange in your environment.
- We record the exact OpenSSH, TLS library and vendor versions in use, since key exchange support depends on each release.
- The written scope states which protocols, hosts and key exchange settings are covered before any work begins, and engagements are fixed-scope.
How we build
- We configure SSH key exchange methods and TLS 1.3 named groups on the systems in scope, checking the defaults your versions ship with.
- We test negotiation with real clients, including fallback to non-post-quantum methods, so you can see which connections are affected.
- We check that larger hybrid key shares fit within the packet and handshake sizes your devices and middleboxes accept.
How we hand over
- You receive a written record of the negotiated methods and groups per system, along with the configuration changes that produced them.
- The documentation notes which settings depend on specific versions, so your team can confirm compatibility before each upgrade.
- We walk your engineers through the test results and retest any changes they make after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial work is handed over.
- A retainer can cover re-checking negotiated methods when OpenSSH or TLS library releases change their defaults.
- Ask any quote to state which protocol versions, hosts and test cases it includes, so the scope can be compared directly.

