Is SSH quantum safe for long-lived data?

SSH key exchange is the part that matters most for data recorded today, and the published guidance points to hybrid post-quantum key exchange, with signature keys retired on a separate timeline.

On this page

What the published guidance says about SSH and quantum attack

If you run SSH sessions that carry data which must stay confidential for years, the question to answer is whether the key exchange protects that traffic against a future quantum computer. The published position is clear on the key exchange. RFC 10042, published in August 2026 as an Informational document, defines hybrid key exchange methods for SSH that combine ML-KEM with traditional elliptic-curve Diffie-Hellman, because current SSH key exchanges rely on discrete logarithm problems that a sufficiently large quantum computer would make feasible. OpenSSH states that it supports the hybrid methods sntrup761x25519-sha512 and mlkem768x25519-sha256, and says "We recommend that all SSH connections use these algorithms." The reader who owns this answer is typically a security lead or platform engineer responsible for SSH servers, bastion hosts and automation that moves sensitive data across them.

The guidance treats the threat as a recording problem. RFC 10042 describes an adversary who records the encrypted traffic between a client and server today and decrypts it later, which it calls a "harvest now, decrypt later" attack. The OpenSSH page makes the same point and notes that key agreement is therefore the main concern for traffic sent today. Confirm your OpenSSH version before you rely on this: post-quantum key agreement has been on by default since OpenSSH 9.0, mlkem768x25519-sha256 was added in 9.9, and it became the default scheme in 10.0. OpenSSH 10.1 warns when a session does not use a post-quantum key exchange, with the message "This session may be vulnerable to 'store now, decrypt later' attacks". The WarnWeakCrypto option in ssh_config can suppress that warning, so check it before you treat the absence of a warning as evidence of protection.

Signatures are a separate question and the guidance handles them differently. Host and user keys authenticate the session and cannot be used to decrypt recorded traffic, so the OpenSSH page says there is no risk to existing traffic from classical signatures such as RSA and ECDSA. Its urgency is about retiring classical signature keys before quantum computers become practical, and OpenSSH says it will add post-quantum signature support in the future. The BSI notes that signature keys with long validity periods still need a timely change. For your inventory, record each SSH server's host keys and client keys with their lifetimes, and ask your vendor or distribution which OpenSSH build and which signature algorithms they ship. The UK NCSC asks organisations to record the expected lifetime and value of the data they hold, which is the input you need to prioritise these hosts.

What each body has published on SSH and quantum attack

This table lists each source on SSH and quantum attacks, what it says about key exchange, signatures or timelines, and the dates it sets. Key exchange is the main concern for traffic recorded today, while signatures mainly need timely replacement. Check the dates against each source before citing it.

SourceWhat it says on SSH or quantum attackDates it sets
RFC 4253Defines the SSH transport layer and lists diffie-hellman-group1-sha1 and diffie-hellman-group14-sha1 as required key exchange methods. Combines key exchange with host key signatures for server authentication.No migration dates. The document predates the post-quantum guidance below.
RFC 10042Defines hybrid SSH key exchange methods combining ML-KEM with elliptic-curve Diffie-Hellman. States that current SSH key exchanges rely on discrete logarithm problems, and describes the harvest now, decrypt later attack.Published as Informational in August 2026.
draft-ietf-sshm-mlkem-hybrid-kex-10Defines the ML-KEM hybrid key exchange method names and the message numbers used for them. It is the draft later published as RFC 10042.Draft dated 26 February 2026.
OpenSSH post-quantum pageRecommends that all SSH connections use mlkem768x25519-sha256 or sntrup761x25519-sha512. Says signatures carry no retroactive decryption risk, and that support for post-quantum signatures will be added in the future.Post-quantum key agreement on by default since OpenSSH 9.0 (April 2022). Default scheme in OpenSSH 10.0 (April 2025).
NIST FIPS 203Defines ML-KEM, a key-encapsulation mechanism for establishing a shared secret over a public channel, with three parameter sets.Published 13 August 2024.
NIST IR 8547Describes NIST's approach to moving from quantum-vulnerable public-key algorithms to post-quantum signature and key-establishment schemes. Supports Executive Order 14412 and OMB Memorandum M-26-15, which prioritize migrating the most sensitive systems.Initial public draft 12 November 2024. Final version 27 October 2026.
NCSC timelines guidanceAsks organisations to record their data, including expected lifetime and value to an adversary, and to treat long-lived data as a priority.By 2028: set goals and plan. By 2031: earliest priority migrations. By 2035: complete migration. Published 20 March 2025.
BSI quantum technologies pageSays post-quantum schemes should, where possible, be combined with classical schemes. Names store now, decrypt later as mainly a threat to key agreement, and says signature keys with long validity periods need timely change.Names TR-02102-1 version 2026-01 as the current guideline. The page sets no separate migration dates.

Why key exchange is the part that matters most for SSH

For SSH, the part of a session most exposed to a future quantum computer is the key exchange. RFC 10042 states that current SSH key exchanges rely on discrete logarithm problems, and that if sufficiently large quantum computers become available, these instances would no longer be computationally infeasible. The OpenSSH post-quantum page makes the practical consequence explicit: an attacker can record encrypted sessions today and decrypt them once a quantum computer is available. RFC 10042 calls this pattern a "harvest now, decrypt later" attack. Traffic sent today over a classical key exchange is therefore the traffic at risk, even if no one can decrypt it yet. The historic baseline for the protocol is visible in RFC 4253, which lists diffie-hellman-group1-sha1 and diffie-hellman-group14-sha1 as its required key exchange methods. Those methods are long obsolete as defaults, and their presence in the RFC describes the starting point rather than current guidance.

Signatures are a different case. The OpenSSH page says most signature algorithms in current use, including RSA and ECDSA, could be broken by a quantum computer, but that this creates no risk to existing traffic, because signatures do not allow retroactive decryption. The BSI makes the same distinction, noting that signatures usually only need to be secure in the short term, although signature keys with long validity periods still need a timely change. For SSH, the urgency on the signature side is therefore about retiring classical host and user keys before quantum computers become practical, not about protecting recorded sessions. The OpenSSH page says the project will add post-quantum signature support in the future, so the work for an operator today is to inventory which host and user keys have long validity and plan their replacement.

The practical priority follows from this split. Confirm that the key exchange on every SSH client and server you run uses a hybrid post-quantum method such as mlkem768x25519-sha256, and check the OpenSSH version you run against the release notes in the OpenSSH post-quantum page, since that method became the default in OpenSSH 10.0. Pay particular attention to sessions that carry data with long secrecy requirements, because those are the sessions a recording adversary would target. The NCSC guidance asks organisations to record the expected lifetime and value of the data they hold, which is the input needed to rank those sessions. Signature migration can run on a separate timeline, and the NCSC milestones of 2028, 2031 and 2035 give a frame for planning it.

Where SSH relies on classical public-key cryptography

An SSH session uses public-key cryptography in several places, and each one carries a different quantum exposure. Key exchange protects traffic sent today against recording and later decryption, while host key signatures and user authentication keys mainly affect short-term trust. Check each component in your own configuration before deciding what to change.

Key exchange methods

The SSH transport layer protocol in RFC 4253 requires diffie-hellman-group1-sha1 and diffie-hellman-group14-sha1 as its key exchange methods. Both depend on discrete logarithm problems, which RFC 10042 says would no longer be computationally infeasible if sufficiently large quantum computers become available. This is the component that matters most for traffic recorded today, so check which key exchange methods your servers and clients offer and accept.

RFC 4253

Host key signatures

RFC 4253 Section 8 combines the key exchange with a host key signature so the client can authenticate the server. Section 6.6 defines the host key formats ssh-dss, ssh-rsa, pgp-sign-rsa and pgp-sign-dss. Signatures do not allow retroactive decryption, so the OpenSSH post-quantum page states there is no risk to existing traffic from this part alone. Check which host key types your servers present, and plan for replacing long-lived host keys as signature support arrives.

User authentication keys

Users typically authenticate with their own key pairs, which are classical public-key credentials just like host keys. The BSI notes that signatures usually only need to be secure in the short term, but signature keys with long validity periods still need a timely change. Check how long your user keys remain valid and which key types your users generate, since long-lived keys extend the period in which a future quantum computer could matter.

OpenSSH default key exchange

The OpenSSH post-quantum page says post-quantum key agreement has been on by default since OpenSSH 9.0 (April 2022), and that mlkem768x25519-sha256 became the default scheme in OpenSSH 10.0 (April 2025). OpenSSH 10.1 also warns when a connection does not use post-quantum key exchange. Check your OpenSSH version and whether the default applies to your connections, because defaults on your side and the peer's side both shape what is negotiated.

OpenSSH post-quantum page

Hybrid key exchange options

RFC 10042, published in August 2026 as an Informational document, defines hybrid SSH key exchange methods that combine ML-KEM with traditional elliptic-curve Diffie-Hellman. The method names include mlkem768nistp256-sha256, mlkem1024nistp384-sha384 and mlkem768x25519-sha256. Confirm that your SSH implementation supports these hybrid method names before relying on them, since the availability of a name does not show that your versions offer it.

RFC 10042

What the sources say about SSH data that must stay confidential for years

The NCSC asks organisations to record the data they hold, its expected lifetime and its value to an adversary, and it names priority services as those that process the most valuable or long-lived data. For SSH, the question to answer is which sessions carry data that must stay confidential for years. Administrative sessions into databases, backup hosts and file transfer systems are the usual candidates, especially where the session is recorded or logged. Start by listing the hosts and jump servers that accept SSH, the data each one handles, and how long that data must remain secret. Those answers decide which SSH paths move up the migration order set out in the NCSC's 2028, 2031 and 2035 milestones.

The BSI describes "store now, decrypt later" as a threat that mainly concerns key-agreement schemes, and says signatures usually only need to be secure in the short term. For a recorded SSH session, the exposure therefore sits in the key exchange that protects the traffic, not in the host key signature. The OpenSSH post-quantum page makes the same point: an attacker can record encrypted sessions today and decrypt them later, so key agreement is the main concern for traffic sent now. Check that your clients and servers negotiate a hybrid key exchange such as mlkem768x25519-sha256 or sntrup761x25519-sha512, and confirm the version you run supports it before relying on it.

Signatures still need attention. The BSI notes that signature keys with long validity periods need a timely change, and the OpenSSH page says the urgency for signatures lies in retiring classical signature keys before quantum computers become practical. Long-lived host keys and user keys that protect high-value systems should be inventoried with their validity periods. Confirm with your SSH vendor or distribution whether a post-quantum signature option is available for your version, since the OpenSSH page says support for post-quantum signatures is planned for the future and does not give a date.

What the guidance says to use for SSH key exchange

RFC 10042 and the draft it was published from define hybrid SSH key exchange methods that combine ML-KEM with a traditional elliptic-curve or NIST curve exchange, so that the session key depends on both. The sources name three method identifiers. Each one pairs an ML-KEM parameter set from NIST FIPS 203 with a classical component, and the hash in the name is part of the method.

  • mlkem768x25519-sha256: ML-KEM-768 combined with X25519, hashed with SHA-256.
  • mlkem768nistp256-sha256: ML-KEM-768 combined with the NIST P-256 curve, hashed with SHA-256.
  • mlkem1024nistp384-sha384: ML-KEM-1024 combined with the NIST P-384 curve, hashed with SHA-384.
  • The draft defines the message numbers SSH_MSG_KEX_HYBRID_INIT (30) and SSH_MSG_KEX_HYBRID_REPLY (31) used by these methods.
  • RFC 10042 is an Informational document published in August 2026.

The sources do not say how these three methods compare for a given security target beyond their parameter sets, so confirm the choice against your own requirements and the policy you operate under. Check that both the client and server you run support the exact method name, because a method is only used when both sides offer it.

The dates the published guidance sets for SSH migration

The timeline starts with OpenSSH 9.0 in April 2022, which switched on post-quantum key agreement by default. NIST published FIPS 203 (ML-KEM) on 13 August 2024, and the UK NCSC set its migration milestones on 20 March 2025: goals and discovery by 2028, priority activities by 2031, and full completion by 2035. OpenSSH 10.0 made the hybrid mlkem768x25519-sha256 method the default in April 2025. RFC 10042, published in August 2026, standardises ML-KEM hybrid key exchange for SSH, and NIST IR 8547 was finalised on 27 October 2026. Check each milestone against the body that set it, and note that the timeline covers key agreement first, since signatures are a separate and later step.

Dates from NIST, the NCSC, the IETF and OpenSSH for SSH key agreement migration.

What to do about SSH in the systems you run

This sequence turns the question of whether SSH is quantum safe into a documented inventory, a dated plan and a record you can show auditors and customers. Each step ends with an output you can check, so the result reflects your own estates rather than a general claim about the protocol.

  1. Inventory every SSH server and client

    Start by finding every SSH server and client in your environment, including appliances, network devices, build systems, jump hosts and any tool that opens SSH sessions in the background. For each one, record the software name, the exact version and the key exchange methods it offers and negotiates. Most current OpenSSH builds can list their supported methods with ssh -Q kex, and your vendor documentation should cover appliances that cannot run that command. The step is complete when you have a list covering every host in scope, with each version and key exchange setting written down, and each gap assigned to an owner.

  2. Read the dates that apply to your sector

    Using the inventory, read the migration guidance that applies to your sector and region. The UK NCSC's timelines guidance sets milestones for 2028, 2031 and 2035, and its advice on keeping a record of data lifetime and value is directly useful here. The BSI in Germany and NIST in the United States publish their own positions, including NIST IR 8547. Confirm with your regulator or sector body which document governs you. The step is complete when you have a written note naming each document, the milestones it gives and the owner responsible for tracking them.

  3. Ask vendors which hybrid methods they support

    Send each SSH vendor and operating system provider a written question asking which hybrid key exchange methods their current and planned releases support, and when they expect to ship them. Ask specifically about mlkem768x25519-sha256 and sntrup761x25519-sha512, and about any signature algorithms they plan to offer, since OpenSSH says it will add post-quantum signatures in the future but gives no date. Record the answers, their version numbers and their stated dates. The step is complete when every vendor in your inventory has answered or has been chased, and you can say which products have a stated path and which do not.

  4. Plan hybrid key exchange and classical key retirement

    Plan the change in two parts. First, move key exchange to hybrid methods wherever the software supports them, which the OpenSSH post-quantum page recommends for all SSH connections, and first test the change in a non-production environment to confirm that older clients still connect. Second, plan the retirement of classical signature keys, since the urgency for signatures lies in replacing them before quantum computers become practical. Keep this separate from the key exchange work, because signatures do not allow retroactive decryption, as the OpenSSH page notes. The step is complete when you have a dated plan that lists each host group, its change and its rollback path, and that has been approved by the owner of each system.

  5. Record the answer for auditors and customers

    Write up the result so that an auditor or customer can check it. The record should contain your inventory, the sector documents you relied on, the vendor responses, the migration plan and the status of each host. Note that OpenSSH 10.1 warns when a connection does not use post-quantum key exchange, and that the warning reads "This session may be vulnerable to store now, decrypt later attacks". You may disable it with the WarnWeakCrypto option in ssh_config, but only where a documented reason exists, such as a legacy system that cannot yet be upgraded, and that reason should name an owner and a review date. The step is complete when the record is stored with the systems it describes and is reviewed at each planned milestone.

Claims readers meet about SSH and quantum attack, and what the sources say

Readers often hear that SSH is either fully safe or fully broken against quantum computers. The sources separate the key exchange, which protects recorded traffic, from host key signatures, which authenticate the server, and each card below takes one common claim and checks it against those sources.

SSH is quantum safe because it uses hybrid key exchange

The OpenSSH post-quantum page says OpenSSH supports hybrid key exchange methods such as mlkem768x25519-sha256 and sntrup761x25519-sha512, and recommends that all SSH connections use them. That is a recommendation from the project, not a certification that any particular deployment is quantum safe. RFC 10042 defines how these hybrid methods are negotiated, so check which methods your client and server actually agree on for long-lived data.

OpenSSH post-quantum page

Recorded sessions need signatures replaced now

The OpenSSH post-quantum page says signatures do not allow retroactive decryption, so a recorded session cannot be decrypted later by attacking the signature. The concern for traffic sent today is key agreement, which is the step an attacker would need to break to read recorded data. Signature keys still need a planned retirement, but replacing them is not what protects recorded traffic.

Store now, decrypt later applies to key exchange

RFC 10042 describes an adversary recording SSH traffic and decrypting it later, which it labels a harvest now, decrypt later attack. The BSI names store now, decrypt later as a threat that mainly concerns key-agreement schemes, while signatures usually only need security in the short term. For data that must stay confidential for years, the key exchange method is the setting to inspect first.

RFC 10042

A warning in OpenSSH means the session is safe

The OpenSSH page says OpenSSH 10.1 warns when a connection does not use post-quantum key exchange, with the text saying the session may be vulnerable to store now, decrypt later attacks. The warning shows that the negotiated method is not post-quantum, and its absence is not a certification. It can also be silenced with the WarnWeakCrypto option in ssh_config, so do not treat the absence of a warning as proof of protection.

Post-quantum key exchange is on by default

The OpenSSH page says post-quantum key agreement has been on by default since OpenSSH 9.0, and that mlkem768x25519-sha256 became the default scheme in OpenSSH 10.0. Default behavior depends on the version running on each host and client, and older builds or vendor packages may differ. Confirm the version and the negotiated method on each endpoint rather than relying on the default.

Host key formats are already quantum safe

RFC 4253 defines host key formats such as ssh-rsa, which are the classical public-key signatures that the OpenSSH page says could be broken by a quantum computer. The sources do not describe any listed host key format as quantum safe. Plan to check which host key types your servers present, and treat their replacement as a separate task from the key exchange upgrade.

RFC 4253

Questions people ask about SSH and quantum attack

Does a larger SSH key protect recorded traffic from a quantum attack?

Not on its own. The exposure comes from the key exchange method, not the size of the host or user key. RFC 10042 explains that current SSH key exchanges rely on discrete logarithm problems, and that if sufficiently large quantum computers become available these instances would no longer be computationally infeasible. Choosing a bigger RSA or Ed25519 key does not change the key exchange, so a session recorded today could still be decrypted later. The fix is a post-quantum or hybrid key exchange method, which is why the question to ask is which key exchange your SSH software negotiates.

Must we replace SSH now to stay quantum safe?

The published guidance does not require replacing the SSH protocol itself. RFC 10042, published in August 2026 as an Informational document, defines hybrid key exchange methods that combine ML-KEM with classical elliptic-curve Diffie-Hellman within SSH. The UK NCSC sets three milestones: by 2028 define goals and build an initial plan, by 2031 carry out the highest-priority migration activities, and by 2035 complete migration of all systems. Start by confirming which key exchange methods your servers and clients negotiate, and prioritise sessions that carry long-lived data.

What post-quantum key exchange can SSH use today?

The hybrid methods named in the sources are the practical starting point. RFC 10042 defines mlkem768nistp256-sha256, mlkem1024nistp384-sha384 and mlkem768x25519-sha256. The OpenSSH post-quantum page says OpenSSH supports sntrup761x25519-sha512 and mlkem768x25519-sha256, and recommends that all SSH connections use these algorithms. OpenSSH has enabled post-quantum key agreement by default since version 9.0 (April 2022), and mlkem768x25519-sha256 became the default scheme in version 10.0 (April 2025). Confirm support in your own versions and check the negotiated method in a test session.

Is SSH traffic sent today already at risk from a future quantum computer?

Traffic sent over a classical key exchange can be recorded now and decrypted later, which is the harvest now, decrypt later attack that RFC 10042 describes. The OpenSSH page states that an attacker can record encrypted sessions today and decrypt them once a quantum computer is available, so key agreement is the main concern for traffic sent today. Whether the risk matters for you depends on how long the data must stay confidential. The sources do not give a date for when a cryptographically relevant quantum computer will exist, so the decision rests on your data's required confidentiality period.

Do SSH host and user signatures need replacing right now?

The sources treat signatures as a lower urgency than key exchange. The OpenSSH page says most signature algorithms in current use, including RSA and ECDSA, could be broken by a quantum computer, but that there is no risk to existing traffic in this situation because signatures do not allow retroactive decryption. The BSI notes that signatures usually only need to be secure in the short term, although signature keys with long validity periods also need a timely change. OpenSSH says it will add post-quantum signature support in the future, so plan to retire long-lived classical signature keys on a schedule rather than treat them as an immediate fix.

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

Ask which key exchange methods the product negotiates by default, and whether the hybrid options in RFC 10042 and the OpenSSH page are enabled or can be enabled. Ask for the version in which each method was added and whether a warning is raised for sessions without post-quantum key exchange. For OpenSSH 10.1, the warning text is "This session may be vulnerable to store now, decrypt later attacks", and it can be disabled with WarnWeakCrypto in ssh_config, so ask whether that option is set. Ask for their plan for post-quantum signatures and for retiring classical host and user keys.

How DeployOpen works on this

DeployOpen starts from a written scope covering the SSH servers, clients and host keys in your environment, then plans which key exchange and host key changes apply to each. Work is delivered as a fixed-scope engagement, with a handover of configuration, tests and documentation your team can review.

How we scope

  • Inventory which SSH servers, clients and OpenSSH versions your environment runs, and which key exchange methods each accepts.
  • Identify which sessions carry data with long confidentiality lifetimes, since key agreement is the main concern for recorded traffic.
  • Record scope, deliverables and timelines in writing before work begins, as all engagements are fixed-scope.

How we build

  • Configure hybrid key exchange methods such as mlkem768x25519-sha256 where your OpenSSH versions support them, and test negotiation between client and server.
  • Review host key and signature choices separately, since signatures do not allow retroactive decryption of past sessions.
  • Test fallback behaviour and check that connections without post-quantum key exchange are logged or flagged, including any WarnWeakCrypto setting.

How we hand over

  • Deliver sshd_config and ssh_config changes, with a record of each method name and the versions they apply to.
  • Document the test results, the inventory, and the remaining classical signature keys that still need a scheduled change.
  • Walk your operations and security teams through the handover so they can review and maintain the configuration.

How we support

  • Support is available as an ongoing retainer for upgrades when new OpenSSH releases change defaults or add signature algorithms.
  • Retest configuration after OpenSSH upgrades, since support for post-quantum methods depends on the version you run.
  • Confirm compatibility with the specific versions and clients in your estate before relying on any method in production.

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.