Fix the SSH post-quantum key exchange warning on SFTPGo

When an OpenSSH 10.1 or later client reports that a connection to SFTPGo is not using a post-quantum key exchange, the fix is to run a release that offers mlkem768x25519-sha256 and to keep that algorithm first in kex_algorithms.

On this page

What the SSH post-quantum key exchange warning means on SFTPGo

The warning appears on the client side when OpenSSH 10.1 or later connects to SFTPGo without a post-quantum key exchange. The operator of the SFTPGo server and the administrators of the clients who connect both have to act, because the fix can sit on either end: the server must offer a post-quantum key exchange algorithm, and the client must be willing to use it. Until both sides agree, the client keeps reporting the warning.

The connection is still encrypted. The warning is a signal about how the key exchange was negotiated, not evidence that the session is broken or that data is exposed on that connection. What it tells you is that the session did not use a post-quantum hybrid key exchange, so the reader should treat it as a planning item. SFTPGo added support for the hybrid algorithm mlkem768x25519-sha256 in release v2.7.0, published on 2025-10-23, and the project's default kex_algorithms list places it first. The latest release shown on the project's SFTPGo releases page, checked on 2026-12-04, is v2.7.6, dated 19 Sep 2026.

Urgency depends on whether a partner or automated job relies on the connection staying up. If a transfer job fails or a partner's tooling starts refusing the server after a client update, the change becomes a scheduling problem. Confirm with each partner whether their client is OpenSSH 10.1 or later, and whether they can negotiate mlkem768x25519-sha256, before changing anything on the server. The OpenBSD ssh manual documents the options for checking the negotiated key exchange.

Who has to act on the warning

The warning appears on connections to SFTPGo, but the fix is split across the people who run the server, the clients that connect to it, the platform that hosts it and the project that ships the release. SFTPGo is self-hosted, so the operator usually controls the server configuration and is the person who has to act first.

SFTPGo server operator

The operator controls the SFTPGo binary, the sftpgo.json configuration file and the sftpd bindings, including the port and listen address. The operator can check the running version with sftpgo -v, and can set kex_algorithms in the sftpd section so that mlkem768x25519-sha256 is offered first. Environment variables such as SFTPGO_SFTPD__BINDINGS__0__PORT can override file settings, so the operator should confirm which values are actually in effect. The operator cannot change what partner clients offer or negotiate.

SFTPGo config docs

Partner or automation owner

The owner of the OpenSSH client, whether a partner system or a scheduled job, controls the client version and its key exchange preferences. The warning is shown on the client side when the client is OpenSSH 10.1 or later, so the owner should check the version with ssh -V and whether the client supports the algorithm with ssh -Q kex. Running ssh -vv against the SFTPGo port shows what was negotiated. The owner cannot change the server's offered algorithms, and should not assume the server has changed until a new connection is tested.

Platform team hosting SFTPGo

When SFTPGo runs in a container or on a managed VM, the platform team controls the image or base operating system, the port mappings, any load balancer or firewall in front of the service, and how environment variables are injected. A new SFTPGo release has to be deployed into the same runtime that the operator configured, and an upgrade may not carry over local config changes unless they are kept in the mounted config file or environment. The platform team cannot change the key exchange algorithms the server offers without the operator's configuration.

Vendor and community maintainers

The SFTPGo project publishes the release, its default kex_algorithms list and its release notes. The project added mlkem768x25519-sha256 in v2.7.0, and the latest release shown on the GitHub releases page when checked on 2026-12-04 is v2.7.6. Operators can read the release notes before upgrading to confirm which changes apply to their version. The maintainers do not control how a given deployment is configured or how partner clients connect, so local changes stay with the operator and platform team.

SFTPGo releases

How to check which key exchange SFTPGo and the client negotiate

This sequence confirms the SFTPGo version, locates the active configuration, and records the key exchange that the server and the client agree on. The output shows whether the connection uses a post-quantum hybrid key exchange, which is the input for the fix that follows.

  1. Confirm the installed SFTPGo version

    Run sftpgo -v or sftpgo --version on the host that runs the SFTPGo server. The output shows the installed release. Post-quantum hybrid support through the algorithm mlkem768x25519-sha256 was added in SFTPGo v2.7.0, published on 2025-10-23, so a release earlier than v2.7.0 cannot offer that algorithm. Record the version string, then compare it with the latest release shown on the project's GitHub releases page, which listed v2.7.6 when checked on 2026-12-04. Run sftpgo serve --help to see the flags that the serve command accepts before you change any configuration.

  2. Locate the active configuration file

    Identify which configuration file the running service reads. The sftpgo serve command accepts --config-file, which sets the exact path, name and extension of the file, and --config-dir, which sets the base directory for relative paths. Check the service definition, such as a systemd unit or container command, for either flag. If neither flag appears, SFTPGo falls back to its default file, sftpgo.json. Confirm the file path before you read or edit it, because editing a file the service does not load produces no change in behavior.

  3. Read the sftpd kex_algorithms setting

    Open the active configuration file and find the sftpd section, then read the kex_algorithms list. The setting is described as key exchange algorithms in preference order, and an empty list uses the defaults. The documented default begins with mlkem768x25519-sha256, followed by curve25519-sha256 and the ECDH and Diffie-Hellman options. Note whether the key is absent, empty, or set to an explicit list. If the list is set and omits mlkem768x25519-sha256, the server will not offer the hybrid algorithm even on version 2.7.0 or later. Also check for environment variables that override the file, named with the SFTPGO_ prefix and a double underscore between nested keys.

  4. Check the SFTPGo listening port

    Confirm the port that clients connect to. The sftpd bindings entry defaults to port 2022 and listens on all interfaces when the address is empty. Read the port value under the first binding in the configuration file, or read SFTPGO_SFTPD__BINDINGS__0__PORT if an environment variable sets it. Use this port in the next step so the client test reaches the SFTPGo listener and not another SSH service on the same host.

  5. Capture the negotiated key exchange from a client

    From a client machine that connects to the SFTPGo port, run ssh -vv or ssh -vvv against the server, for example ssh -vvv -p 2022 user@host, and stop the connection once the output shows the negotiated algorithm. Verbose output names the key exchange that both sides agreed on. The more v flags you add, the more handshake detail is printed. Confirm that the line reports mlkem768x25519-sha256 if the server and client both support it, or a classic algorithm such as curve25519-sha256 if they do not. Save the output, because it is the evidence you need for the later confirmation step.

  6. Check the client OpenSSH version

    On the client machine, run ssh -V to print the OpenSSH version. The warning appears only when the client is OpenSSH 10.1 or later, so a client older than 10.1 will not show the warning even when the server is unchanged. Record the version alongside the verbose handshake output. If the version is 10.1 or later and the negotiated algorithm is classic, the difference is usually in the server offer, so return to the kex_algorithms setting.

  7. Check client support for the hybrid algorithm

    Run ssh -Q kex on the client machine and look for mlkem768x25519-sha256 in the list of key exchange algorithms that the client can offer. If the algorithm is present, the client can negotiate it when the server offers it too. If it is absent, the client cannot negotiate the hybrid algorithm, and the fix must come from the client side or from a client upgrade. The OpenBSD ssh manual describes the -Q option and the algorithm list it prints, so check that page if the output format is unfamiliar.

Causes of the warning at SFTPGo and the fix for each

This table lists the four causes of the SSH post-quantum key exchange warning on SFTPGo that the researched facts support, with the fix for each and the setting or release to check. Read each row against the server's version, its sftpd kex_algorithms list and the config file or environment variables in use. The main takeaway is that a current release and a kex_algorithms list that keeps mlkem768x25519-sha256 near the top are the two things the operator controls directly.

CauseFixWhere to check
SFTPGo release older than v2.7.0Upgrade to a release that includes mlkem768x25519-sha256, starting with v2.7.0 and preferably the latest release, which was v2.7.6 when checked on 2026-12-04.Run sftpgo -v and compare with the releases page
kex_algorithms omits mlkem768x25519-sha256Add mlkem768x25519-sha256 to the sftpd kex_algorithms list, or leave the list empty so the documented default applies.sftpd kex_algorithms in sftpgo.json
kex_algorithms demotes mlkem768x25519-sha256Move mlkem768x25519-sha256 back to the first position in the kex_algorithms list, because the list is read in preference order.sftpd kex_algorithms order in sftpgo.json
Client does not offer the algorithmConfirm the partner client supports mlkem768x25519-sha256 with ssh -Q kex, then ask the partner to upgrade the client if it does not.ssh -Q kex and ssh -V on the client side
Non-default config path or environment variable overrides the settingFind the config file the running server actually loads and remove or correct any SFTPGO_SFTPD__KEX_ALGORITHMS override, then restart the service.serve --config-file, serve --config-dir and SFTPGO_ variables

What to change on SFTPGo, in order

This sequence moves SFTPGo to a release that supports the hybrid post-quantum key exchange, puts that algorithm first in the server's preference list, and confirms that the bound listener offers it to clients. Each step ends with a check you can run before you move on to the next one.

  1. Confirm the running SFTPGo version

    Run the version flag on the host that serves SFTP, using the binary your service manager starts, for example sftpgo -v. The post-quantum key exchange algorithm mlkem768x25519-sha256 was added in SFTPGo v2.7.0, published on 2025-10-23, so a version earlier than v2.7.0 needs an upgrade before any configuration change will have an effect. You are done when the output shows v2.7.0 or later. If it does not, go to the next step.

  2. Upgrade to a release at or after v2.7.0

    Plan the upgrade with the server owner and the team that runs the service. The latest release on the SFTPGo GitHub releases page, when checked on 2026-12-04, is v2.7.6, dated 19 Sep 2026, so that is the current target, but confirm the version your organization approves before you install it. Install the new binary using the method you used originally, and keep a copy of the previous binary and of sftpgo.json in case you need to roll back. You are done when the version check from the previous step reports v2.7.0 or later.

  3. Locate the active configuration file

    SFTPGo uses sftpgo.json as its default configuration file. If the service starts with a different file, the serve command accepts --config-file, which sets the path, name and extension, and --config-dir, which sets the base directory for relative paths. Check the unit file or startup script to see which flags are passed. Make a backup of the file before editing it. You are done when you know the exact path the running service reads.

  4. Set kex_algorithms in the sftpd section

    Open the sftpd section of the configuration file and set kex_algorithms to a list that begins with mlkem768x25519-sha256. The setting is read in preference order. Alternatively, leave the list empty, which uses the documented default: mlkem768x25519-sha256, curve25519-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha256, then diffie-hellman-group-exchange-sha256. Note that SHA-512 based key exchanges are disabled by default because they are slow, so sntrup761x25519-sha512 does not appear in the default list. If you want it, you must add it explicitly and accept the performance trade-off. You are done when the file is valid JSON and the list shows the algorithm you chose first.

  5. Apply the same key through environment variables

    If your deployment sets configuration through environment variables, SFTPGo reads them as the config key uppercased, prefixed with SFTPGO_, with nested keys joined by a double underscore. For the sftpd setting, use the SFTPGO_SFTPD__ prefix and follow the environment variable documentation for how list values are written. Confirm the exact variable name and format in the SFTPGo environment variables documentation before you set it, and make sure the variable and the file do not contradict each other. You are done when the value the service reports at startup matches the list you intended.

  6. Restart the service and review bindings

    Restart the SFTPGo service so it reads the new settings. Then review the sftpd bindings. The port defaults to 2022, and the address default is empty, which listens on all available network interfaces. Confirm that the port and address match what your partners and jobs connect to, and that you are not exposing the listener more widely than intended. You are done when the service is running and the listener is on the expected address and port.

  7. Confirm the connection negotiates the new algorithm

    From a client you control, connect to the SFTPGo port with ssh -vv or ssh -vvv and check which key exchange is negotiated. Check that the client supports mlkem768x25519-sha256 with ssh -Q kex. The warning only appears when the client is OpenSSH 10.1 or later, which you can confirm with ssh -V, so test with a client on that version to see the warning clear. You are done when the negotiated key exchange is mlkem768x25519-sha256 and the warning no longer appears for that client.

How the fix differs for binaries, containers and managed hosts

A standalone SFTPGo binary reads its settings from a configuration file, which is sftpgo.json by default. The SSH and SFTP server settings sit in the sftpd section, and the key exchange list is the kex_algorithms key. If you start the server with sftpgo serve, you can point it at a specific file with --config-file, and --config-dir sets the base directory for relative paths, so confirm which file your service actually loads before editing anything.

  • Find the active file: Check the service definition or start command for --config-file or --config-dir. If neither is present, the default sftpgo.json applies.
  • Add the algorithm explicitly: Place mlkem768x25519-sha256 first in kex_algorithms under sftpd, keeping the other entries you need. An empty list uses the documented defaults.
  • Keep the hybrid entry first: The documented default already lists mlkem768x25519-sha256 at the top, so a list you wrote yourself should preserve that order.
  • Restart after editing: Reload or restart the SFTPGo service so the new list takes effect.
  • Confirm the version: Run sftpgo -v to check that the binary is at v2.7.0 or later, the release that added the hybrid algorithm.

After the edit, check the file the running process reads, not only the file you expected to edit.

How to confirm the SFTPGo connection stops reporting the warning

The check for a fixed SFTPGo deployment is to repeat the connection that produced the warning, using the same OpenSSH client, and read the key exchange that gets negotiated. Run ssh -vv with the user and host that a partner or job uses, and point it at the SFTPGo SFTP port, which defaults to 2022 unless the sftpd bindings in your configuration say otherwise. In the verbose output, look for the line that names the negotiated key exchange algorithm. When the connection succeeds with mlkem768x25519-sha256 as the key exchange and the post-quantum warning does not appear, the server and client agree on the hybrid algorithm and the warning has stopped. Before you rely on that result, confirm the client itself supports the algorithm with ssh -Q kex, since the warning only appears on OpenSSH 10.1 or later, and check the client version with ssh -V.

A fallback to curve25519-sha256 is the output to treat as a failure to fix. The server lists mlkem768x25519-sha256 first in its documented default kex_algorithms, so a fallback usually means the setting was changed to omit it, the server was not restarted after the change, or the client did not offer the hybrid algorithm. Check the kex_algorithms value in the sftpd section of sftpgo.json or in the environment variable that overrides it, and confirm that the running SFTPGo build is the one you upgraded. The SFTPGo v2.7.0 release is the first to list support for mlkem768x25519-sha256, so a build older than that cannot negotiate it. Run sftpgo -v to confirm the version you are running, and compare it with the latest release on the project's GitHub releases page.

After the test passes, watch the connections that matter over time rather than trusting a single manual session. Partner support tickets and automated transfer jobs are where the warning reappears, usually after a client upgrade, a new partner environment, or a configuration rollout that reset the kex_algorithms list. Ask partners whether their next scheduled job logs still report the warning, and review your own job logs for the negotiated key exchange after each SFTPGo upgrade or configuration change. Record the ssh -vv output you accepted as evidence so the change can be reviewed later. The sources listed on this page do not say how any specific partner or job scheduler reports the key exchange in its logs, so confirm that format with each party.

What can break after the change

Enabling the post-quantum key exchange on SFTPGo changes which algorithms the server offers first, so clients that depend on a fixed list can behave differently. The cards below cover the three places where this most often surfaces: older clients, automation with pinned settings, and compliance-mode configurations.

Older clients and automation

Clients that predate mlkem768x25519-sha256 cannot negotiate it, so they fall through to the next algorithm in the server's list, usually curve25519-sha256. That is normally harmless, but a client with a hard-coded allowlist that omits every offered algorithm will fail to connect. Before the change, confirm which partner clients and jobs connect, and run ssh -Q kex on a representative client to see whether it supports the post-quantum algorithm. Test each partner client against a staging listener before changing production.

OpenBSD ssh manual

Pinned host keys and algorithm lists

CI runners and scripts often pin a host key in known_hosts or set KexAlgorithms in an SSH config file. A pinned host key breaks if the host key type changes, and an explicit KexAlgorithms list breaks if it omits the algorithms the server now prefers. Search your repositories and runner images for KexAlgorithms, known_hosts and StrictHostKeyChecking before the change, and record which jobs depend on them so each one can be updated and retested.

Compliance-mode and FIPS configurations

Deployments run in a compliance mode or FIPS configuration may restrict which key exchange algorithms are permitted. The sources for this section do not describe how SFTPGo behaves under FIPS, so ask your compliance team and check the product documentation before enabling the new algorithm. Confirm whether the setting is allowed in your environment and whether kex_algorithms can be overridden in that mode.

SFTPGo configuration docs

Explicit kex_algorithms overrides

The kex_algorithms setting under sftpd is a preference-ordered list, and leaving it empty uses the documented defaults. An operator who previously set this list manually will not receive the new algorithm unless it is added, and a list that drops the default entries can remove options that partners depend on. Review any custom value in sftpgo.json or its environment-variable equivalent, SFTPGO_SFTPD__KEX_ALGORITHMS, before and after the change.

Compatibility of the SHA-512 KEX

The SFTPGo configuration docs state that SHA-512 based key exchanges are disabled by default because they are slow, so sntrup761x25519-sha512 is absent from the documented default list. An operator who wants it must add it explicitly, which changes the negotiated algorithm for any client that offers it. Check with partners whether they require a specific key exchange before adding any algorithm to the list.

When to get outside help with the SFTPGo warning

Most SFTPGo operators can handle this warning alone. The change is a configuration edit to sftpd kex_algorithms in sftpgo.json followed by a restart, and the release notes show the hybrid algorithm mlkem768x25519-sha256 has been available since v2.7.0. Outside help becomes worth considering when the change itself cannot be made by you. Check the version you run with sftpgo -v against the latest release, and if you are on a version older than v2.7.0, the upgrade path is a larger decision than a single setting and may need a change window agreed with your team. If you cannot upgrade, if your server is managed by a hosting provider or a vendor who controls the binary and configuration, or if your deployment is embedded in a product you do not maintain, the first step is to ask that party in writing what they will change and when.

A second case is scale. If many partners, customers or automated jobs report the warning against the same SFTPGo endpoint, the work is no longer a single edit: each partner client version, each job and each firewall rule that touches port 2022 or your chosen binding needs a check. Operators who run several SFTPGo instances across environments, or who serve partners in other organizations, should inventory those connections before changing the default. An implementation partner can help map the connections, plan the order of changes and test each partner client against ssh -vv output before the server change goes live. Confirm with each partner which OpenSSH version they run using ssh -V, because the warning only appears from OpenSSH 10.1 onward.

Regulated environments need a different kind of help. If an auditor, a bank, a health system or a federal customer asks for evidence of the change, you will need dated records: the release and version you run, the configuration before and after, the test output from ssh -vv or ssh -vvv showing the negotiated key exchange, and a change record. Ask your compliance lead which evidence format they require before the change, since DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or attestations, and independent auditors and certification bodies do that work.

Questions people ask after seeing the SFTPGo warning

Is the connection still encrypted when the SFTPGo warning appears?

Yes. The warning means the connection is not using a post-quantum key exchange algorithm. It does not mean the session is unencrypted. The client and SFTPGo still negotiate a traditional key exchange and encrypt the session with it. What changes is the algorithm that protects the key exchange, and the warning reports that this algorithm is not post-quantum. Confirm the negotiated algorithm yourself with ssh -vv against the SFTPGo port rather than relying on the warning text alone.

Is the SFTPGo key exchange warning urgent?

The warning calls for planning, not an emergency response. It appears only when the client is OpenSSH 10.1 or later, so the first step is to find out which partner clients and automated jobs trigger it. If you run SFTPGo v2.7.0 or later, you can add the post-quantum key exchange mlkem768x25519-sha256 through configuration. Earlier releases do not include that algorithm, so the change depends on upgrading first. Schedule the work against your own partner and compliance commitments, and confirm any dates with those parties.

Can the SFTPGo key exchange warning be ignored or silenced?

The warning should not be ignored as a standing condition. Silencing it is only a temporary step. The durable fix is to put mlkem768x25519-sha256 in the sftpd kex_algorithms list in sftpgo.json, or set the equivalent environment variable, and then confirm the negotiated algorithm changes. Any step that stops the warning from appearing should be recorded as temporary, with an owner and a removal date, and should be reverted once the post-quantum key exchange is confirmed. Do not present a silenced warning as a resolved one.

Why does the SFTPGo key exchange warning appear now?

The warning appears because newer clients now offer post-quantum key exchange and report when a server does not match it. SFTPGo added support for the hybrid algorithm mlkem768x25519-sha256 in release v2.7.0, published on 2025-10-23. Servers running older releases cannot offer it, so the warning reflects the gap between the client's offer and the server's list. The documented default for kex_algorithms in current SFTPGo releases already lists mlkem768x25519-sha256 first, so a server that still shows the warning is often running an older release or a customized list.

What should we do if the SFTPGo server cannot be upgraded?

Start by confirming whether the server can take the upgrade at all, because the post-quantum key exchange needs SFTPGo v2.7.0 or later. If an upgrade is blocked, the options are to keep the warning in place as a documented exception with an owner and reason, or to restrict which clients reach the server. Any change to the server's network access or client list should be tested with your partners first. The sources listed on this page do not describe a supported workaround for servers stuck on older releases, so confirm the options with SFTPGo's documentation and your vendor before you rely on one.

Should we bring in outside help for the SFTPGo key exchange change?

Outside help is worth considering when the server sits in a regulated environment, serves many partner clients, or has custom configuration that you do not want to change blind. DeployOpen plans, implements, tests and documents self-hosted open-source platforms inside the client's own infrastructure, and can review an SFTPGo deployment before and after the change. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing first. DeployOpen does not issue audit reports or certifications, so independent auditors remain the source for any formal attestation.

How do we confirm the SFTPGo warning has stopped?

Confirm it from the client side. Run ssh -vv or ssh -vvv against the SFTPGo port, which is 2022 by default, and check the negotiated key exchange algorithm in the output. Use ssh -Q kex to confirm the client supports mlkem768x25519-sha256, and ssh -V to confirm the client is OpenSSH 10.1 or later. The warning should stop appearing once SFTPGo and the client agree on the post-quantum algorithm. If it persists, check that the setting is in effect and that the server was restarted, since a changed list has no effect on a running process.

How DeployOpen helps fix the SFTPGo warning

DeployOpen works through SFTPGo's SFTPD settings, first confirming which key exchange algorithms your server offers and which clients connect to it, then changing the configuration in your own environment and retesting the connection. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Confirm the SFTPGo version and the config file location (sftpgo.json by default) that the server actually loads.
  • Inventory which partner clients and automated jobs connect, and whether they are OpenSSH 10.1 or later.
  • Agree in writing which sftpd kex_algorithms changes, if any, are in scope and what evidence the engagement delivers.

How we build

  • Review the sftpd kex_algorithms list and compare it with the documented default, which starts with mlkem768x25519-sha256.
  • Apply the change through the config file or SFTPGO_SFTPD__ environment variables, and record the before and after settings.
  • Test the connection from representative clients with ssh -vv and ssh -Q kex to confirm the negotiated algorithm.

How we hand over

  • Deliver a written record of the config values, SFTPGo version and client results used during the change.
  • Document the rollback steps, including how to restore the previous kex_algorithms value if a partner client fails.
  • Walk your operations team through the retest so they can repeat the check after future SFTPGo upgrades.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
  • Retesting after each SFTPGo release, such as the current v2.7.6 line, is included in the retainer scope.
  • Ask any provider for the exact config keys, client versions and test commands they will use before work starts.

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.