Fix the SSH post-quantum key exchange warning on older Ubuntu LTS releases

Older Ubuntu LTS server packages may not offer a post-quantum key exchange, so the SSH warning appears. Server administrators check the negotiated algorithm, change the configuration or upgrade the package, and confirm the warning clears.

On this page

Why an older Ubuntu LTS server shows the SSH post-quantum warning

If you administer an Ubuntu 22.04 (Jammy) or 24.04 (Noble) server and see the OpenSSH warning that a connection is not using a post-quantum key exchange algorithm, the warning means that the key exchange your server negotiated is not post-quantum. It does not mean the connection is broken or readable by an outsider. The session is still encrypted, and the warning is a notice about which key exchange algorithm was chosen. You have to act on the server itself, because the server's OpenSSH package decides which key exchange algorithms it can offer. The warning is not an emergency for a single session, but it is a planning item for the server.

The cause is the version of OpenSSH the release ships. The warning was added in OpenSSH 10.1. The Noble package in the Ubuntu sources is 1:9.6p1-3ubuntu13.20 in security and updates, the Jammy package is 1:8.9p1-3ubuntu0.18, and the Focal package is 1:8.2p1-4ubuntu0.13. All three predate 10.1, so their sshd does not add the warning, and the sources do not show a post-quantum default added to those packages. Ubuntu's Resolute Raccoon series is listed with 1:10.2p1-2ubuntu3.8 in security and updates, which is newer than 10.1. Confirm the installed version on your host with sshd -V and compare it with the package listing on Launchpad rather than assuming the warning will or will not appear.

Two details affect the plan. Ubuntu's post-quantum discussion says that on Noble the default key exchange is sntrup761x25519-sha512 and that mlkem768x25519-sha256 is the new preferred default in the newer release. Launchpad bug 2120496 proposes a backport of both algorithms into the Noble 9.6p1 package, and as of 2026-12-04 its Noble task is In Progress. Ubuntu's post-quantum discussion also says there are no plans to backport the OpenSSL algorithms to Noble and recommends upgrading to 26.04. Check the bug's current status and the release notes for your exact package before you choose between an upgrade and a configuration change.

Who has to act on the warning and what each party controls

The warning on older Ubuntu LTS releases involves three parties, and each controls a different part of the negotiation. Identify which party you are before changing anything, because the fix lives in one place for each.

Server administrator

The server administrator controls the installed openssh-server package and the /etc/ssh/sshd_config file. Ubuntu's Noble, Jammy and Focal packages are older than OpenSSH 10.1, the release that added the non-post-quantum warning, so the server will not offer a post-quantum key exchange by default. Check the installed version with sshd -V, then review the effective settings with sshd -T. Look for any KexAlgorithms entry that removes or restricts post-quantum algorithms, since that setting overrides the defaults.

sshd_config manual

Client user

The client user controls which ssh binary runs and which key exchange algorithms it offers. The client's preference decides the order in which algorithms are tried, so a newer client can negotiate a post-quantum algorithm even when the server is older. Run ssh -Q KexAlgorithms to list what your client supports, and ssh -v to see the algorithm actually negotiated, for example a line showing mlkem768x25519-sha256. If the negotiated algorithm is not post-quantum, the client cannot fix the server, so confirm the server side as well.

KexAlgorithms reference

Hosted instance administrator

The administrator of a hosted or managed Ubuntu instance may not control the openssh-server package or its configuration. The sources on this page do not say what a given provider allows, so confirm with the provider whether the image is patched to a version with post-quantum defaults and whether /etc/ssh/sshd_config is editable. Where the provider locks the image, the realistic options are a newer image, a provider-side update, or a different host, so ask for those before assuming any change is possible.

Who owns the upgrade decision

Ubuntu's Discourse post states that the author does not plan to backport the post-quantum algorithms to Noble and recommends upgrading to Ubuntu 26.04. A separate Launchpad bug on backporting sntrup761x25519-sha512 to Noble is still in progress, so a backport is not confirmed. Whoever owns the server must decide between waiting for a backport, upgrading the release, or accepting the warning and documenting that decision. Record the decision in the change record so the warning is not treated as a silent defect.

Ubuntu Discourse post

How to check which key exchange the connection negotiated

This sequence confirms which key exchange algorithm a connection to an older Ubuntu LTS server actually uses, which OpenSSH version is installed, and whether the effective server configuration offers a post-quantum option. Each check produces output you can compare against the warning and against the package versions listed for your release. Run the steps in order so the client-side result and the server-side configuration agree.

  1. Confirm the server's OpenSSH package version

    On the Ubuntu server, run sshd -V to print the OpenSSH version. Compare the result with the package version your release is on: for Noble, the security and updates package is listed as 1:9.6p1-3ubuntu13.20; for Jammy, 1:8.9p1-3ubuntu0.18; and for Focal, 1:8.2p1-4ubuntu0.13. The version string confirms which code is running, and that the security and updates package is installed (check with apt policy openssh-server). Note that the warning was added in OpenSSH 10.1, so an older package version explains why the warning appears.

  2. Check the file that sets the key exchange list

    On the server, confirm the default configuration file is /etc/ssh/sshd_config and check whether it, or any file under /etc/ssh/sshd_config.d/, contains a KexAlgorithms line. This is where an administrator would add or remove entries. If no KexAlgorithms line is present, the server uses its built-in default list. Record any KexAlgorithms line you find, because the next check reads the effective value.

  3. Read the effective configuration with sshd -T

    Run sshd -T on the server to print the effective configuration, which merges the main file and any drop-in files. Look for the KexAlgorithms line in the output. This is the list the server will offer to clients. If the list includes a post-quantum option such as mlkem768x25519-sha256 or sntrup761x25519-sha512, the server is able to negotiate one, provided the client also offers it. If the list does not include one, the server cannot negotiate a post-quantum key exchange, regardless of what the client supports.

  4. Validate the configuration syntax with sshd -t

    Run sshd -t to check the configuration for errors. This command only checks validity and prints nothing when the file is valid, so a silent exit with no error message means the file parsed correctly. If it reports an error, fix the named line in /etc/ssh/sshd_config or the drop-in file before restarting the service. Note that sshd -t checks syntax only; it does not show which algorithms are negotiated, so use sshd -T to see the effective list.

  5. List the algorithms the client build supports

    On the client machine, run ssh -Q KexAlgorithms to list the key exchange algorithms that client's OpenSSH build supports. Check whether a post-quantum algorithm appears in the list. A client that lacks one cannot offer it, so the connection falls back to a classical key exchange even when the server is configured correctly. Compare this list with the server's effective KexAlgorithms from the previous step to find a common option.

  6. Read the negotiated algorithm with ssh -v

    From the client, connect to the server with ssh -v user@host and look for the debug line that names the key exchange, which has the form debug1: kex: algorithm: followed by the algorithm name. Verbose output is printed during the handshake, so you can read it before the login prompt appears. The line shows what was actually negotiated for that connection. If it names a post-quantum algorithm, the warning should not appear for that connection; if it names a classical algorithm, check the server and client lists from the previous steps.

  7. Confirm the warning clears after the change

    After any change to KexAlgorithms or to the installed package, restart the SSH service, then repeat the ssh -v connection and confirm the kex line names a post-quantum algorithm. Run sshd -T again to confirm the effective list. The warning is considered resolved for a connection only when the negotiated line is post-quantum on that connection, not when the configuration file alone has been edited.

Which causes produce the warning on older Ubuntu LTS and the fix for each

This table lists four causes of the post-quantum key exchange warning on Ubuntu LTS and the fix for each. Find the row that matches your server or client, then apply the fix in the Fix column. The main takeaway is that the Noble, Jammy and Focal package versions in Launchpad are all older than OpenSSH 10.1, so these releases will not offer post-quantum key exchange without a newer package.

CauseHow to recognize itFix
openssh-server older than OpenSSH 10.1Run sshd -V on the server. A version earlier than 10.1 offers no post-quantum key exchange algorithm.Upgrade openssh-server to a package listed with a newer security or updates version, or move to Ubuntu 26.04 LTS.
KexAlgorithms line removes post-quantum algorithmsRun sshd -T and check the kexalgorithms line in the output for a removal (-) or a list with no post-quantum entries.Remove the restriction from /etc/ssh/sshd_config, or add the post-quantum algorithms back with +, then run sshd -t and reload the service.
Client on an older releaseRun ssh -v to the server and check the negotiated line. Older client packages may not offer post-quantum algorithms.Upgrade the OpenSSH client package on the client machine, or connect from a client on a newer release.
Host on a series whose package lists a newer versionCheck Launchpad for the series. Noble, Jammy and Focal show package versions older than 10.1, while Resolute Raccoon lists 1:10.2p1-2ubuntu3.8.Move the host to Resolute Raccoon or Ubuntu 26.04 LTS, since Launchpad bug 2120496 for Noble is still In Progress.

What to change on Noble, Jammy and Focal, in order

This sequence checks for a published OpenSSH update, applies it, adjusts the key exchange list only where the server already supports the post-quantum option, and confirms the change with a validated configuration and a fresh connection. Noble's backport is still pending, so the upgrade to 26.04 remains the path the sources recommend.

  1. Check the installed openssh-server version

    Run sshd -V on the server to see the OpenSSH version that is installed, and run apt policy openssh-server to see the installed and candidate package versions. Compare the installed version with the security and updates versions listed for your series: 1:9.6p1-3ubuntu13.20 on Noble, 1:8.9p1-3ubuntu0.18 on Jammy and 1:8.2p1-4ubuntu0.13 on Focal. Any installed version older than these is a candidate for updating. You are done with this step when you know which series and package version the server is running.

  2. Confirm whether an updated package is published

    Look up your series on the Launchpad openssh page and find the security and updates version for it. If the candidate package from apt matches the published version, an update is available through the normal pocket. On Noble, the Launchpad bug 2120496 for the sntrup761x25519-sha512 backport is still In Progress as of 2026-12-04, so an updated Noble package may not yet include the post-quantum key exchange. Record the result before changing anything.

  3. Apply the security and updates package

    Run sudo apt update and then sudo apt install --only-upgrade openssh-server to install the published security and updates version. Confirm that the installed version now matches the version you recorded for your series by running sshd -V again. Do not change the release or pocket sources as part of this step. Restarting sshd is handled in the reload step at the end of the sequence.

  4. Adjust KexAlgorithms only where supported

    Open /etc/ssh/sshd_config and, only if ssh -Q KexAlgorithms on the server lists the post-quantum algorithm, add it with the + operator, for example KexAlgorithms +mlkem768x25519-sha256 or KexAlgorithms +sntrup761x25519-sha512. Do not replace the whole list, and do not add an algorithm the server does not list. If the server does not list it, leave the configuration as it is and move on to the upgrade path. Keep a copy of the previous file so you can restore it.

  5. Validate the configuration with sshd -t

    Run sudo sshd -t to check the configuration for syntax and validity. It prints nothing when the file is valid and reports an error with the line number when it is not. You can also run sudo sshd -T to view the effective configuration written to standard output and confirm the kexalgorithms line. Do not reload the service until sshd -t completes without errors.

  6. Reload the SSH service

    Run sudo systemctl reload ssh on Ubuntu so the running daemon picks up the validated configuration. Keep your existing session open while you test, and open a second session to confirm you can still log in. If the new session fails, use the open session to restore the backup of sshd_config and run sshd -t again before reloading.

  7. Confirm the warning stops and plan the upgrade path

    From a client, run ssh -v against the server and look for a debug1: kex: algorithm: line that names a post-quantum algorithm. If it still names a non-post-quantum algorithm, the server or its packages have not yet been updated to offer it. The Ubuntu Discourse post says Ubuntu does not plan to backport the OpenSSL post-quantum algorithms to Noble and recommends upgrading to Ubuntu 26.04. Treat that upgrade as the recommended path, and do not suppress the warning as a fix.

How the fix differs for packaged, container and cloud Ubuntu installs

A packaged Ubuntu host gets its OpenSSH server from the openssh-server package, installed and updated with apt. The Launchpad package listings show that the Noble, Jammy and Focal series have security and updates versions that are older than OpenSSH 10.1, the release that added the warning. The sources do not say that these packages will ship a post-quantum key exchange by default, so the reader should not assume an apt update alone removes the warning. Ubuntu's Discourse post says that sntrup761x25519-sha512 is the default on Noble and that mlkem768x25519-sha256 is the new preferred default, and it says the author would look at a backport to Noble but later stated there are no plans to backport the OpenSSL post-quantum algorithms to Noble. Launchpad bug 2120496 tracks a Noble backport of both algorithms, with the Noble task in progress as of 2026-12-04.

  • Check the installed version: run sshd -V and compare the result with the Launchpad version for your series.
  • Apply security updates: install the updates from the Ubuntu archive with apt, then restart sshd.
  • Read the effective settings: run sshd -T to see what the server offers, rather than relying on the file alone.
  • Pin key exchange deliberately: if you set KexAlgorithms in /etc/ssh/sshd_config, list only the algorithms you intend to offer.
  • Track the backport: follow Launchpad bug 2120496 to see whether a Noble package adds the new algorithms.

Before you close the ticket, confirm the warning is gone from a real client connection, not only from the server configuration.

How to confirm the warning stops appearing after the change

Confirm the fix from both ends of the connection. On the client, run ssh -v against the Ubuntu server and look for a line that names the negotiated key exchange, such as debug1: kex: algorithm: mlkem768x25519-sha256 or sntrup761x25519-sha512. A post-quantum hybrid name on that line means the connection is using a post-quantum key exchange, and the warning should no longer appear. Ubuntu's own test output shows the mlkem768x25519-sha256 line for connections to OpenSSH 10.0 or later servers, so a line like that is the result to look for. The exact text your client prints may differ slightly, so compare against what your environment actually shows.

On the server, run sshd -T and check the kexalgorithms line in the effective configuration. This output shows what the running configuration offers, which is the authoritative answer, not the contents of the file you edited. Confirm that a post-quantum algorithm appears there, and that no KexAlgorithms entry you added is overriding a default you intended to keep. Also run sshd -V to confirm the installed version. Noble ships 1:9.6p1-3ubuntu13.20, Jammy 1:8.9p1-3ubuntu0.18 and Focal 1:8.2p1-4ubuntu0.13 at the time of the facts, and none of those package versions is OpenSSH 10.1 or later. If the package has not been updated, the server may still lack the algorithm even with a correct KexAlgorithms setting. Confirm with the Ubuntu package listing whether a backport has reached your release before assuming a version change is coming.

After any change, reload the SSH service and watch the logs on the server and on a test client for a few connections. A server or client still on an old package will keep showing the warning, so treat a persistent warning as a sign the package or the configuration on that side has not changed. Record which client versions still report it, because some of them will need their own updates. Ubuntu has said it will not backport the OpenSSL post-quantum algorithms to Noble and recommends upgrading to 26.04, so if the check keeps failing on Noble, plan for that upgrade rather than repeating configuration changes.

What can break when the key exchange changes

Moving an Ubuntu LTS server to a post-quantum key exchange can fail for clients that do not offer the new algorithms, for automation that pins host keys or algorithm lists, and for hosts running compliance-mode or FIPS settings. Each risk below comes with a check you can run before and after the change.

Older clients and automation

Clients built before OpenSSH 10.0 may not offer sntrup761x25519-sha512 or mlkem768x25519-sha256, so they fall back to a classic exchange or fail to connect if the server is restricted. Scripts, backup jobs and monitoring agents often run on old client builds that nobody has updated. To check, run ssh -Q KexAlgorithms on each client machine and confirm which algorithms it supports, then test a login from every client type you rely on before you tighten the server's KexAlgorithms line.

sshd_config manual

CI runners that pin keys

CI runners often pin host keys in known_hosts or hard-code an algorithm list in their SSH configuration, so a change in the server's key exchange or host key can break a pipeline that worked the day before. Runners that copy a fixed known_hosts entry will also fail if the host key type changes. Before the change, search your pipeline configuration and runner images for KexAlgorithms, HostKeyAlgorithms and pinned known_hosts entries, and run one job against the upgraded host in a staging runner to confirm it connects.

Compliance and FIPS restrictions

Hosts under a compliance-mode or FIPS configuration may restrict KexAlgorithms to a short approved list, and a post-quantum algorithm added by the package may not be in that list. In that case the server will offer nothing the client can match, or the warning will persist. Confirm the restriction with your security team, then read the effective configuration with sshd -T and check whether the algorithm you expect appears in the kexalgorithms line.

Reading the effective configuration

A line in /etc/ssh/sshd_config or a drop-in file under /etc/ssh/sshd_config.d/ can override the default that the package ships, so the file on disk does not always show what the server uses. Run sshd -T to see the effective values after all includes are applied, and run sshd -t to confirm the file parses before you reload the service. Check for a KexAlgorithms line that uses a +, - or ^ prefix, since those modify the default list instead of replacing it.

sshd manual

Package versions on older releases

Launchpad lists the Noble package at 1:9.6p1-3ubuntu13.20 and the Jammy package at 1:8.9p1-3ubuntu0.18 in security and updates, and both are older than OpenSSH 10.1, where the warning was added. Ubuntu has said there are no plans to backport the post-quantum algorithms to Noble, so a fully patched Noble server may keep showing the warning. Compare your installed version with sshd -V and the Launchpad listing before you assume the update will clear it.

Launchpad openssh

When to get help with an older Ubuntu LTS SSH upgrade

Get outside help when the fix is no longer a change you can make alone on one host. The first case is when you cannot move the server to a newer Ubuntu release. The Launchpad listings show that Noble is at 1:9.6p1-3ubuntu13.20, Jammy at 1:8.9p1-3ubuntu0.18 and Focal at 1:8.2p1-4ubuntu0.13, and all three are older than OpenSSH 10.1, which added the warning. Ubuntu's own guidance says that upgrading to 26.04 is recommended, and that there are no plans to backport the OpenSSL post-quantum algorithms to Noble. If your change control or hardware constraints block an upgrade, the realistic options are a provider-supported path, a restricted-access design, or a documented exception. Confirm with your Ubuntu support channel whether a backport such as the one tracked in Launchpad bug 2120496 has landed in your release before you plan around it.

The second case is scale. When many hosts show the warning, the work becomes an inventory and rollout problem rather than a single server edit. Ask a partner to help you build a list of every host that reports the debug1: kex: algorithm: line for a non-post-quantum exchange, record each host's release and openssh package version, and group them by the fix they need. Each group needs its own test on a staging host before any KexAlgorithms change reaches production, because the effect depends on what each client offers. Make sure someone verifies the change with sshd -T and a fresh ssh -v connection on every host, not only on the first one.

The third and fourth cases involve control rather than technical skill. If the host belongs to a hosted provider who controls the package, the provider's maintenance schedule decides when the package moves, so ask them in writing what they will ship and when. If a regulated environment needs written evidence of the change, plan the record from the start: the before and after sshd -T output, the package version, the change ticket and the test results. Be clear with stakeholders that DeployOpen prepares systems and evidence for assessments but does not issue audit reports or attestations, and that an independent auditor makes that determination. Avoid promising that any engagement will remove the warning on every host, since the outcome depends on the client software you cannot control.

What people ask after seeing the SSH warning on Ubuntu

Is my SSH connection still encrypted when this warning appears?

Yes. The warning is about which key exchange algorithm was negotiated, not about whether the session is encrypted. The connection still uses encryption, but the key exchange in use is not post-quantum. The warning appears because the OpenSSH client added the check in version 10.1, and the Ubuntu packages on older releases are older than that. Run ssh -v from the client to see the negotiated algorithm on the debug1: kex: algorithm: line. A post-quantum algorithm there, such as mlkem768x25519-sha256, means the warning should not appear for that connection.

Is this SSH warning urgent on an older Ubuntu server?

Treat it as a planning item, not an emergency. The warning reports that the key exchange is not post-quantum, which matters for traffic that an attacker records now and could decrypt later. Whether that risk applies to your sessions depends on what they carry and how long that data must stay confidential. Check your own data retention and compliance obligations before deciding the timeline, and confirm with your security team. The sources listed on this page do not set a deadline for Ubuntu LTS releases to add the algorithms.

Can I ignore or silence the SSH post-quantum warning on Ubuntu?

You can leave the warning in place while you plan, but silencing it does not make the key exchange post-quantum. Hiding the message in a client script or wrapper removes the signal your auditors and users rely on. If you change the server configuration, do it deliberately. The KexAlgorithms option in sshd_config controls which key exchange algorithms the server offers. Adding + entries or moving a post-quantum algorithm to the front with ^ changes behavior only if the algorithm is present in your build. Check with ssh -Q KexAlgorithms on the server before editing anything. Record any suppression decision and its reason in your change log.

Why does the SSH warning appear now on Ubuntu 22.04 and 20.04?

The warning comes from newer OpenSSH clients, not from a change to the server's data. OpenSSH 10.1 added the warning for non-post-quantum key exchange. On Launchpad, the Ubuntu openssh package in the Jammy series is 1:8.9p1-3ubuntu0.18 and in the Focal series is 1:8.2p1-4ubuntu0.13 as of 2026-12-04, both older than 10.1. Those versions do not offer the newer algorithms in their default configuration. Noble (24.04) is at 1:9.6p1-3ubuntu13.20, also older than 10.1. The Ubuntu Discourse post from 12 February 2026 says Noble's default key exchange is sntrup761x25519-sha512, and that mlkem768x25519-sha256 is the preferred default in newer releases.

Will Ubuntu backport post-quantum SSH to Noble, Jammy or Focal?

The sources show partial work and a clear recommendation, but no committed date. Launchpad bug 2120496, reported on 2025-08-12, asks for sntrup761x25519-sha512 on stable releases. As of 2026-12-04 its Noble task is In Progress and its Jammy task is Triaged, and the proposed update covers backporting both sntrup761x25519-sha512 and mlkem768x25519-sha256 into 9.6p1 on Noble. On 28 February 2026 the Ubuntu author stated there were no plans to backport the OpenSSL post-quantum algorithms to Noble and recommended upgrading to Ubuntu 26.04. Check the bug page and the Ubuntu security notices for the current status before you plan around it.

What should I do if the Ubuntu server cannot be upgraded yet?

Start by documenting the constraint and reducing exposure while you plan. The main options are to upgrade to a release that ships post-quantum key exchange by default, or to keep the older release and restrict who can reach its SSH service. Confirm the current package on the server with sshd -V and the effective configuration with sshd -T. Review KexAlgorithms in /etc/ssh/sshd_config to see which algorithms are offered. Restrict network access to the SSH port to known management hosts. Test any change in a staging environment, and check the result with ssh -v from a client. Plan the upgrade path with your own change process, since upgrades carry application and dependency risk.

Should I hire outside help for the Ubuntu SSH migration?

Consider outside help when the inventory is large, when older servers run critical workloads, or when your team needs evidence for a compliance review. A fixed-scope engagement can cover the inventory of SSH servers, the configuration review, the upgrade plan, and the verification evidence. DeployOpen plans, implements and documents self-hosted platforms in your infrastructure, and runs security testing, but it does not issue audit reports or certifications. The scope, deliverables and timelines are agreed in writing before work starts. A quote follows from that written scope. Ask any provider which OpenSSH versions they test against and what evidence they hand over.

How DeployOpen helps plan and carry out the Ubuntu SSH upgrade

DeployOpen works through the Ubuntu SSH upgrade in the order a server team needs it: confirm which release and OpenSSH version each host runs, decide whether the server moves to a newer Ubuntu release or stays on its current one, then make and verify the change. Each step is written down so your team can review it, repeat it and keep the evidence for later audits.

How we scope

  • Inventory every Ubuntu host and record its release and installed openssh package version.
  • Identify which hosts report the warning and which clients connect to them.
  • Agree a fixed written scope covering hosts, changes, deliverables and a retainer option.

How we build

  • Check sshd configuration with sshd -T and review any KexAlgorithms settings before changing them.
  • Test the chosen key exchange order on a staging host and confirm the negotiated algorithm with ssh -v.
  • Document each configuration change and roll it out to production hosts in agreed batches.

How we hand over

  • Deliver a runbook listing each host, its prior and final OpenSSH version and its configuration.
  • Provide the test output showing the connection no longer reports the warning, for your records.
  • Walk your administrators through the runbook so they can repeat the checks on new hosts.

How we support

  • Offer ongoing support as a retainer to cover upgrades and re-checks after new Ubuntu package updates.
  • Re-test hosts when Ubuntu backports or releases new OpenSSH packages to your release series.
  • Confirm with your vendors and the Launchpad package pages which versions your release currently ships.

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.