Fix the SSH post-quantum key exchange warning on Bitbucket Data Center

The warning is printed by the OpenSSH 10.1 or later client on the developer machine, not by Bitbucket itself. Bitbucket Data Center administrators confirm which key exchange their instance negotiates and check whether the fix in BSERV-20202 is present.

On this page

What the SSH post-quantum warning means on Bitbucket Data Center

The warning is printed by the OpenSSH 10.1 or later client on the developer's machine, not by Bitbucket itself. According to Atlassian's issue BSERV-20202, OpenSSH 10.1 displays the warning when the server does not offer a post-quantum key exchange algorithm. Bitbucket Data Center has not offered mlkem768x25519-sha256 in the configuration Atlassian describes, so developers who connect with a current client see the warning on clone, fetch and push. The fix therefore has two sides: the Bitbucket administrator controls what the server offers, and each developer controls which client version they run and whether they upgrade it.

The warning has three lines. The first states that the connection is not using a post-quantum key exchange algorithm. The second says the session may be vulnerable to "store now, decrypt later" attacks, meaning an adversary could record the encrypted traffic today and decrypt it once a capable quantum computer exists. The third points to the server upgrade guidance at openssh.com. The session is still encrypted: the warning describes the key exchange's resistance to future attacks, not a failed connection, and it does not mean the data is currently exposed. Whether it matters depends on the data carried. Source code and repository metadata with a long confidentiality lifetime deserve more attention than material that becomes public or stale quickly.

BSERV-20202, titled "Add support for mlkem768x25519-sha256 SSH key exchange algorithm", was created on 7 October 2025 and records that this algorithm was not supported in Bitbucket at the time. It was closed as Fixed in version 10.2.0, released on 3 March 2026. Before changing anything, confirm the Bitbucket version your instance runs and check the algorithms it negotiates, because the issue page does not state which key exchanges 10.2.0 enables by default. Run ssh -vvv against your Bitbucket SSH port and inspect the negotiated algorithm to see whether the warning still applies.

Who has to act on the warning

The warning comes from the OpenSSH client on a developer's machine, but the fix depends on the Bitbucket Data Center server. Administrators control the server and its upgrade path, developers control their own client, and Atlassian shipped the server-side change in 10.2.0.

Bitbucket Data Center administrator

The administrator owns the instance, its upgrade schedule and its bitbucket.properties file. Atlassian's issue BSERV-20202 says mlkem768x25519-sha256 was not supported in Bitbucket when the warning was raised, so the administrator is the person who decides whether the server is upgraded and which SSH key exchange algorithms it offers. Confirm the negotiated algorithm on your own instance with ssh -vvv rather than assuming the upgrade changed it.

Atlassian KB on SSH algorithms

Server configuration changes

An administrator can review the plugin.ssh.disabled.key.exchanges property, which is blank by default, and add algorithm names to it, then restart Bitbucket for the change to take effect. Properties go in bitbucket.properties in the shared folder of the home directory, while node-specific settings go in $BITBUCKET_HOME/bitbucket.properties. Changes to these settings should be tested against your clients before rollout, since disabling an algorithm can break connections that depend on it.

Configuration properties

Developer whose client shows the warning

The warning is printed by the OpenSSH 10.1 or later client on the developer's machine, not by Bitbucket. A developer cannot make the server offer a new algorithm, but can check the client version and review the warning text, which says the session may be vulnerable to store now, decrypt later attacks. Hiding the message with WarnWeakCrypto no-pq-kex in ssh_config only suppresses it for that host and does not change the negotiated key exchange.

OpenSSH PQ page

Atlassian's fix in 10.2.0

Atlassian tracks the change in BSERV-20202, titled Add support for mlkem768x25519-sha256 SSH key exchange algorithm. The issue is closed as Fixed with Fix Version 10.2.0, resolved on 3 March 2026. The 10.2 release notes do not mention SSH or BSERV-20202, and Atlassian has not published which key exchange algorithms 10.2.0 enables by default, so administrators should confirm this on their own instance.

BSERV-20202 issue

Confirm the negotiated algorithm

Run ssh -vvv against the Bitbucket SSH port, which plugin.ssh.port sets to 7999 by default, then use grep "debug2: KEX algorithms" to see what is offered and grep "debug1: kex: algorithm" to see what was negotiated. Setting debug logging in bitbucket.properties also writes an Available SSH KEY_EXCHANGE line to atlassian-bitbucket.log at startup. The warning should stop appearing only when the negotiated algorithm is post-quantum on your instance.

Atlassian KB on checks

How to check which key exchange Bitbucket negotiates

This sequence confirms which SSH key exchange algorithms your Bitbucket Data Center instance offers and which one a client actually negotiates. Atlassian has not published its default algorithm list for 10.2.0 or later, so the check on your own instance is the only reliable answer. The result tells you whether the warning comes from the server, the client, or both.

  1. Confirm the Bitbucket Data Center version

    Open the Bitbucket web interface as a system administrator and check the version shown in the footer or under Administration. Atlassian's fix for the mlkem768x25519-sha256 key exchange, issue BSERV-20202, lists 10.2.0 as its fix version and was resolved on 3 March 2026. If your instance runs an earlier release, plan an upgrade before going further, since the server cannot negotiate this algorithm without it. You are done when you have written down the exact version string.

  2. Find the SSH port and base URL

    Look up the values of plugin.ssh.port and plugin.ssh.baseurl in bitbucket.properties in the shared folder of your Bitbucket home directory, or in $BITBUCKET_HOME/bitbucket.properties for a node-specific setting. The port defaults to 7999 according to Atlassian's configuration properties page, but your instance may override it. Note both values, because the next step needs the port. If the properties are absent, the defaults apply, and you should confirm that against your own configuration.

  3. Enable debug logging for key exchange

    Add debug logging for SSH to bitbucket.properties, following Atlassian's knowledge base article on SSH algorithms, then restart Bitbucket so the change takes effect. At startup, the server should write an "Available SSH KEY_EXCHANGE" line to atlassian-bitbucket.log listing the key exchange algorithms it has available. Open the log and search for that string. You are done when the line appears and you have copied the list of algorithms it names.

  4. Run ssh -vvv against the SSH port

    From a workstation that reproduces the warning, run ssh -vvv against your Bitbucket host using the port you found in step two, for example ssh -vvv -p <port> git@<bitbucket-host>. The verbose output is long, so capture it to a file in your scratchpad or a working directory, such as ssh -vvv -p <port> git@<host> 2> kex-check.txt. The connection may fail after the key exchange phase, which is acceptable here. You are done when the file contains the handshake output.

  5. Grep the offered key exchange algorithms

    Search the captured output for the line that begins with debug2: KEX algorithms, using grep "debug2: KEX algorithms" on the file you saved. This line lists every key exchange algorithm the client offered to the server. Check whether mlkem768x25519-sha256 appears in it, and compare against the algorithms in the Available SSH KEY_EXCHANGE line from the server log. A mismatch between the two lists shows that one side or the other is restricting the set.

  6. Grep the negotiated key exchange algorithm

    Run grep "debug1: kex: algorithm" on the same capture to see the key exchange the two sides agreed on. This is the algorithm actually in use for that session. If it does not match the post-quantum algorithm you expected, the server did not select it, even if both sides list it as available. Record the negotiated name next to the offered list so you can compare results after any change.

  7. Compare results with the warning

    Note whether the negotiated algorithm is post-quantum and whether the warning text, the three-line message starting with "** WARNING: connection is not using a post-quantum key exchange algorithm", still prints. The warning is raised by the OpenSSH 10.1 or later client on the developer machine, not by Bitbucket, so a client on an older OpenSSH version will not show it at all. If the negotiated algorithm is not post-quantum after the server is on 10.2.0 or later, confirm your plugin.ssh.disabled.key.exchanges setting is blank, since it is documented to disable default key exchanges, and ask Atlassian to confirm the default list for your version.

Which causes produce the warning and the fix for each

This table lists the three causes the sources support for the SSH post-quantum warning on Bitbucket Data Center, with the fix for each. Read the Cause column first to see which side of the connection produces the warning, then follow the Fix column for that row. Atlassian has not published which key exchanges Bitbucket 10.2.0 enables by default, so confirm the negotiated algorithm on your own instance.

CauseWhere it shows upFix
OpenSSH 10.1 or later client on the developer machineThe developer's terminal prints the three-line warning on clone, fetch or pushNothing to change on the server. Upgrade the server to Bitbucket 10.2.0 or later so it can negotiate mlkem768x25519-sha256, then confirm the warning stops
Bitbucket Data Center before 10.2.0, which lacked mlkem768x25519-sha256 supportThe server cannot offer the post-quantum key exchange that the OpenSSH 10.1 or later client looks forUpgrade Bitbucket Data Center to 10.2.0 or later, then restart and confirm with ssh -vvv against the SSH port
Configuration in plugin.ssh.disabled.key.exchanges that disables key exchangesThe property in bitbucket.properties removes key exchange algorithms from the set Bitbucket offersRemove the algorithm names that block a post-quantum key exchange from the property, restart Bitbucket, then re-check the negotiated algorithm
Blank default for plugin.ssh.disabled.key.exchanges on 10.2.0Atlassian has not published which key exchanges 10.2.0 enables by defaultDo not assume the default. Run ssh -vvv and check the debug1 kex algorithm line on your instance
Client-side WarnWeakCrypto no-pq-kex setting in ssh_configHides the warning for a host without changing which key exchange is negotiatedTreat this as a display control only. It does not fix the connection, so use it only as a temporary measure

What to change on the Bitbucket server, in order

This sequence brings Bitbucket Data Center to a release that addresses the post-quantum key exchange gap, confirms that no local setting removes the post-quantum options, and verifies the negotiated algorithm from a client. The result is a server that offers a post-quantum key exchange, or a clear record of what it still does not offer.

  1. Confirm the installed Bitbucket version

    The administrator checks the running version in the Bitbucket administration area or the server's version information. Atlassian's issue BSERV-20202 records that the fix shipped in version 10.2.0, which was released on 3 March 2026. If the instance runs an earlier version, it needs to be upgraded before the remaining steps can be relied on. The step is complete when the version number shown is 10.2.0 or later, and the administrator has recorded it with the change request.

  2. Upgrade Bitbucket to 10.2.0 or later

    The administrator follows Atlassian's upgrade procedure for Bitbucket Data Center, taking a backup of the home directory and the database first. Upgrades on a clustered deployment should follow the sequence Atlassian documents for nodes. The step is complete when every node reports version 10.2.0 or later and the instance starts without errors in the log. Confirm the upgrade against the release notes before scheduling it, since the 10.2 release notes do not mention SSH key exchange changes, so the reason for the upgrade is the fix recorded in BSERV-20202.

  3. Check plugin.ssh.disabled.key.exchanges is empty

    Open the shared bitbucket.properties file in the home directory and look for plugin.ssh.disabled.key.exchanges. The default is blank, which disables no key exchange algorithms. If the property lists any post-quantum algorithm name, such as mlkem768x25519-sha256, remove that name, because it would block the option the server needs to offer. The step is complete when the property is either absent or blank, or lists only algorithms the organization has deliberately decided to disable. Record the value before and after the check.

  4. Edit bitbucket.properties for node-specific settings

    On a clustered deployment, settings that apply to a single node belong in $BITBUCKET_HOME/bitbucket.properties on that node, while settings shared by all nodes go in the shared folder of the home directory. Atlassian's KB says to add algorithm names to the relevant plugin.ssh.disabled.* property and restart Bitbucket, and the same file is used for any node-level adjustments. Keep edits in the standard Java properties format, one property per line. The step is complete when each node's file contains only the intended settings and the administrator has compared the two files.

  5. Restart Bitbucket on each node

    Restart Bitbucket so the property changes take effect. Atlassian's configuration documentation says changes to bitbucket.properties do not apply until Bitbucket restarts. Restart the nodes one at a time where the deployment allows it, and confirm each node is back in service before restarting the next. The step is complete when every node has restarted and the administrator has confirmed the application is responding.

  6. Verify the negotiated key exchange from a client

    From a client with OpenSSH 10.1 or later, run ssh -vvv against the Bitbucket SSH port, which is set by plugin.ssh.port and defaults to 7999. Use grep "debug2: KEX algorithms" to see what the client offers and grep "debug1: kex: algorithm" to see what was negotiated. Atlassian has not published which algorithms version 10.2.0 enables by default, so confirm the result on this instance rather than assuming it. The step is complete when the negotiated algorithm is recorded for each node and the warning no longer appears in the output.

  7. Record the startup key exchange list if needed

    If the verification result is unclear, Atlassian's KB says to enable debug logging in bitbucket.properties. The server then writes an "Available SSH KEY_EXCHANGE" line to atlassian-bitbucket.log at startup, listing the key exchange algorithms it has available. Compare that list against the algorithms the client offered. Turn debug logging off again afterward, since it adds log volume. The step is complete when the administrator has either confirmed a post-quantum option in the server list or documented that it is absent.

How the fix differs for single-node and clustered deployments

A single Bitbucket Data Center node is the simplest shape to change. The node-specific settings go into $BITBUCKET_HOME/bitbucket.properties, and the change takes effect only after Bitbucket is restarted. Because there is one node, there is one file to edit and one restart to perform, and the verification step can be run against the only SSH endpoint.

  • One properties file: Edit $BITBUCKET_HOME/bitbucket.properties on the node, in standard Java properties format.
  • One restart: Restart Bitbucket after saving the file, since the configuration properties page says changes do not apply until restart.
  • One SSH endpoint: Confirm the port with plugin.ssh.port (7999 by default) and the base URL with plugin.ssh.baseurl before running ssh -vvv.
  • Check the log: With debug logging enabled, look for the "Available SSH KEY_EXCHANGE" line in atlassian-bitbucket.log at startup.
  • Confirm the negotiated algorithm: Run ssh -vvv and grep for debug1: kex: algorithm to see the one algorithm the server chose.

After the restart, repeat the ssh -vvv check from a developer machine running OpenSSH 10.1 or later and confirm the warning no longer appears.

How to confirm the warning has stopped on Bitbucket Data Center

To confirm the warning has stopped, rerun the same check that showed it, from a developer machine running OpenSSH 10.1 or later. The warning is printed by the OpenSSH client on that machine, not by Bitbucket, so the test has to run from a client with that version. Run ssh -vvv against the Bitbucket SSH port (plugin.ssh.port, 7999 by default) and watch the debug output. Use grep "debug2: KEX algorithms" to see what the client offers, and grep "debug1: kex: algorithm" to see what was actually negotiated. A successful negotiation shows a post-quantum algorithm, such as mlkem768x25519-sha256, on the debug1: kex: algorithm line, and the three-line warning should no longer print on clone, fetch or push. Atlassian's issue BSERV-20202 was closed as fixed in 10.2.0, but the pages reviewed do not say which key exchange algorithms 10.2.0 or later enables by default, so treat the debug line on your own instance as the only confirmation.

On the server side, enable debug logging in bitbucket.properties and restart Bitbucket, as Atlassian's KB describes. Once the server is back up, search atlassian-bitbucket.log for the Available SSH KEY_EXCHANGE line. It lists the key exchange algorithms the server has available at startup. Confirm that a post-quantum option appears there, then check that it matches the negotiated algorithm you saw from the client. If the line does not list the algorithm, or the client still negotiates a classical one, look for a plugin.ssh.disabled.key.exchanges entry that removes it, since that property is blank by default and any value you added yourself is the first thing to inspect.

Repeat both checks after any Bitbucket upgrade, after any change to bitbucket.properties, and after any change to the client's OpenSSH version, because each can change the negotiated algorithm without any visible notice. Keep a record of the ssh -vvv output and the startup log lines from each passing run so a later failure can be compared against a known good state. Remember that hiding the warning on a client with WarnWeakCrypto no-pq-kex in ssh_config does not change the negotiation, so a clean output after that change proves nothing about the server. Only a negotiated post-quantum algorithm in the debug output confirms the connection is using one.

What can break when the key exchange settings change

Changing the SSH key exchange on Bitbucket Data Center can affect anything that connects over SSH, not only developer clones and pushes. The cards below cover the clients, pipelines, host keys and change processes that are most likely to be affected, so you can test each one before the change reaches production.

Older clients and automation

Clients that predate OpenSSH 10.1 or that use a different SSH library may not offer the algorithm Bitbucket negotiates after a change. A failed negotiation typically surfaces as a connection error on clone, fetch or push, not as a warning. Before rollout, run ssh -vvv from a representative set of older developer machines and build agents, and confirm each one still completes key exchange against the Bitbucket SSH port.

Configuration properties

CI runners with pinned configurations

Build runners often pin an ssh_config file, a known_hosts file or a bundled OpenSSH version in the image, so they will not pick up a server-side change on their own. A key exchange setting that is disabled on the server can leave a pinned runner unable to connect. Inventory the runner images and their SSH configuration, then test a pipeline run against a staging Bitbucket instance before changing production.

Pinned host keys

Changing key exchange settings does not change the server's host key, but some automation pins host keys in known_hosts and treats any other key as a possible attack. Confirm that the host key fingerprint presented by Bitbucket stays the same after the change, and check whether any restore or rebuild process has replaced it. Unexpected host key changes should stop the rollout until they are explained.

Regulated environments and change records

Where change control applies, a change to SSH key exchange settings usually needs a recorded request, an approver, a test result and a rollback plan before it runs. The Bitbucket change will be a property edit in bitbucket.properties followed by a restart, so the record should name the exact property, the value and the restart window. Ask your change board to treat the verification output as part of the closure evidence.

Rollback and the restart window

Bitbucket must be restarted for properties changes to take effect, so the change window carries a restart and any users or jobs running during it. Keep the previous bitbucket.properties values so the change can be reverted in one edit and one restart. Confirm that rollback has been tested on the staging instance before the production change.

Atlassian KB on SSH algorithms

When to get outside help with the Bitbucket SSH warning

Most administrators can work through the Bitbucket Data Center warning by themselves: confirm the negotiated key exchange with ssh -vvv against the SSH port set by plugin.ssh.port, then adjust plugin.ssh.disabled.key.exchanges in bitbucket.properties and restart Bitbucket. Escalate to Atlassian support or a specialist when the upgrade to 10.2.0 is blocked, since the Atlassian issue BSERV-20202 that adds mlkem768x25519-sha256 support lists 10.2.0 as its fix version and was resolved on 3 March 2026. If your instance cannot reach 10.2.0 on your upgrade schedule, ask Atlassian for the specific support path for your version before you change any SSH setting in production.

A second trigger is scale or regulation. If many Git hosts, build agents or automated clients connect to the instance and report the warning, or if the instance sits in a regulated environment that requires evidence of each change, ask Atlassian what it has published about the SSH key exchange algorithms that 10.2.0 and later enable by default. The pages reviewed do not state that, so the default set must be confirmed on your own instance. Ask for the written answer and keep it with your change record. If the negotiated algorithm cannot be confirmed from the debug1: kex: algorithm line, or the "Available SSH KEY_EXCHANGE" line in atlassian-bitbucket.log does not match what the client shows, open a support case with both outputs attached.

DeployOpen plans, implements and documents changes like these for teams that need a written record, including the upgrade sequence, the property changes, the before and after ssh -vvv captures and the evidence pack for an assessor. DeployOpen is not an Atlassian partner, reseller or certified provider, so it cannot change Atlassian's defaults or issue fixes to Bitbucket itself. Any work on the product still goes through Atlassian support or your existing Atlassian contract. Ask for the scope in writing before the work starts.

Questions people ask after seeing the Bitbucket SSH warning

Is my Git connection still encrypted when the warning appears?

Yes, the warning does not mean the connection is unencrypted. It says the session is not using a post-quantum key exchange algorithm, which concerns how the session key is agreed. The three-line message, quoted in Atlassian's issue BSERV-20202, warns that the session may be vulnerable to "store now, decrypt later" attacks, meaning traffic recorded today could be decrypted later if a sufficiently capable quantum computer exists. That risk applies to the key exchange, not to whether data flows encrypted at all. Confirm the negotiated algorithm on your own instance using the ssh -vvv check described below, since the connection itself is still protected by standard encryption.

Is the Bitbucket SSH warning urgent for my team?

The warning is a prompt to plan an upgrade, not an emergency. Atlassian's issue BSERV-20202 was created on 7 October 2025 and resolved as Fixed with Fix Version 10.2.0, released 3 March 2026, so an instance on 10.2.0 or later is the target. How quickly you act depends on how long your sensitive data must stay confidential and on your own risk review. Check your current Bitbucket version first, since the fix is delivered by upgrading, and record the date you assessed it so your compliance and security teams have a dated decision.

Can I hide the Bitbucket SSH warning on my client?

You can suppress the warning on a client, for example with WarnWeakCrypto no-pq-kex in ssh_config, but that only silences the message for a host. It does not change which key exchange algorithm is negotiated, so the session stays exposed to the same risk. Hiding the warning also removes the signal your team needs to track which servers still lack support. Use suppression only as a temporary measure while you schedule the server upgrade, and document it so it is reviewed rather than forgotten.

Why does the Bitbucket SSH warning appear now?

The warning appears because of the OpenSSH client, not because Bitbucket sends it. Atlassian's BSERV-20202 states that as of OpenSSH 10.1, a client displays the warning when the server does not support a quantum-safe algorithm. Atlassian's stated cause is that mlkem768x25519-sha256 was not supported in Bitbucket Data Center when the issue was created on 7 October 2025. Developers using OpenSSH 10.1 or later therefore see the warning against any Bitbucket Data Center instance that lacks the algorithm, which is why it appears on clone, fetch and push.

What should I do if my Bitbucket Data Center instance cannot be upgraded?

If an upgrade to 10.2.0 or later is not possible yet, keep the instance on its current version and manage the risk around it. Confirm the algorithms your instance actually negotiates, record the exposure, and limit the data that flows over those SSH connections where your policy allows. Atlassian's KB explains how to disable default SSH algorithms through plugin.ssh.disabled.key.exchanges, but disabling algorithms cannot add post-quantum support that the version lacks, so treat that setting as a configuration choice rather than a fix. Plan the upgrade with a dated target and keep a written record of the decision.

How do I check which SSH key exchange my Bitbucket server negotiates?

Run ssh -vvv against your Bitbucket SSH port and filter the output. According to Atlassian's KB, grep "debug2: KEX algorithms" shows the algorithms the client offers, and grep "debug1: kex: algorithm" shows the one negotiated. The SSH port is set by plugin.ssh.port, which defaults to 7999, so point the command at the correct host and port. For the server's own list, setting debug logging in bitbucket.properties makes Bitbucket log an "Available SSH KEY_EXCHANGE" line to atlassian-bitbucket.log at startup. Atlassian has not published, in the pages reviewed, which algorithms 10.2.0 enables by default, so confirm the result on your instance.

Do I need outside help to resolve the Bitbucket SSH warning?

Many administrators can handle the upgrade and the checks themselves, because the steps are a version upgrade, a few configuration properties in bitbucket.properties, and a restart. Outside help is worth considering when your instance is part of a larger environment with many dependent systems, when you need the change and its evidence reviewed for an audit, or when you lack the capacity to test the upgrade safely. DeployOpen plans and implements self-hosted platforms in the client's own infrastructure, including upgrades, configuration and documentation, and works from a fixed scope agreed in writing. Ask for a written scope and deliverables before work starts.

How DeployOpen works on this

DeployOpen starts by confirming which SSH key exchange your Bitbucket Data Center instance actually negotiates, then makes any configuration change in your own environment and retests from a developer machine. Engagements are fixed-scope, with scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Record the Bitbucket Data Center version and the OpenSSH client versions that show the warning.
  • Confirm the SSH port and base URL from your configuration before any test runs.
  • Agree in writing whether the work is limited to the warning or includes wider SSH settings.

How we build

  • Run ssh -vvv against your Bitbucket SSH port and capture the offered and negotiated key exchange lines.
  • Turn on debug logging to capture the available key exchange list from the startup log.
  • Adjust plugin.ssh.disabled.key.exchanges in bitbucket.properties only after reviewing the negotiated result.

How we hand over

  • Document the before and after SSH negotiation output, with the exact commands and log lines used.
  • Record every property change, its file location, and the restart needed for it to take effect.
  • Provide a rollback procedure that restores the previous bitbucket.properties values.

How we support

  • Retest from developer machines after each Bitbucket upgrade, since Atlassian has not documented default algorithms.
  • Available as a retainer for ongoing upgrades, configuration reviews and continuous testing.
  • Review new Bitbucket Data Center releases against your recorded SSH configuration on request.

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.