What the Gitea post-quantum warning means and who has to act
If you saw the message "WARNING: connection is not using a post-quantum key exchange algorithm" while cloning, fetching or pushing to a Gitea server, the warning comes from the OpenSSH client on your machine. It describes what the server offered during the handshake: the server did not offer a post-quantum key exchange, so the client could not negotiate one. Fixing it is the Gitea operator's job, not yours, unless you run the server yourself. The connection is still encrypted. The warning is about a different risk: store-now-decrypt-later exposure, where an attacker records encrypted traffic today and tries to decrypt it once a capable quantum computer exists. That risk matters most for data that must stay confidential for many years. For routine repository access it is a planning concern rather than an immediate break, but the warning is a signal to move the server onto a post-quantum-capable configuration.
Who acts depends on how the server is built. The OpenSSH PQ page explains that only a change on the server side, or a different server build, makes the connection use a post-quantum key exchange, and that client-side settings can only hide the warning. For Gitea, the built-in SSH server is controlled by START_SSH_SERVER and SSH_SERVER_KEY_EXCHANGES, and the Gitea configuration cheat sheet says the key exchange setting has no effect when Gitea uses the system SSH server. So the first decision for an operator is which SSH server is actually answering on port 22, and which image or release is running. Not every Gitea deployment is the same. Confirm your image variant and version before changing anything.
Urgency depends on what the repositories hold and how long that data must stay confidential. Gitea issue 35653 reports that the warning came from a container running OpenSSH_9.2p1 against an OpenSSH_10.1 client, and that the fix path differed between the rootless and rootful images, so do not assume a single cause. Check your version against the release notes in the Gitea issue and the cheat sheet, and ask the vendor or project which build to run if the documentation does not answer it. Treat repositories with long-lived sensitive content, such as source for products with multi-year lifetimes or regulated data, as higher priority than public or short-lived code. Record the decision and the check you ran, so the reviewer can see who owns the fix and when it was confirmed.
Who controls the fix on a Gitea server
A Gitea server's SSH warning is fixed by whoever controls the server configuration and the container image, not by the developer whose client shows it. Each role below can change a different part of the chain, and knowing which role owns each part tells you who to contact and what to request.
The Gitea operator
The operator controls app.ini and the container image the server runs. This is the role that decides whether the built-in SSH server is enabled through START_SSH_SERVER, and whether SSH_SERVER_KEY_EXCHANGES is set manually. The Gitea configuration cheat sheet says SSH_SERVER_KEY_EXCHANGES applies only to the built-in SSH server and has no effect on system SSH, so the operator must first confirm which SSH server is actually answering connections. The operator should check whether an old manual value is pinning the server to algorithms that exclude post-quantum options, and remove it if so. Then the operator confirms the running image version, since the fix depends on the build, not just the setting.
The developer's OpenSSH client
The developer's machine runs the OpenSSH client that prints the warning. The client reports what the server offered and negotiated, so changing the client does not make the server use a post-quantum exchange. The developer can confirm what the client supports with ssh -Q kex, and see the negotiated algorithm with ssh -v against the Gitea host, replacing the host name with the server being tested. A developer may hide the message for one host using the WarnWeakCrypto no-pq-kex flag in ssh_config, but that only silences the warning and leaves the server unchanged. The developer should treat this as a temporary local step, not a fix, and should report the result to the operator.
The image maintainer and vendor
The image maintainer builds the container that the operator runs, and that build determines which OpenSSH version and which Go SSH package the server ships. In the Gitea issue, two images behaved differently: the rootless image used the Go SSH package and built-in server, while the rootful image used the OpenSSH server installed by its Dockerfile. The operator cannot fix the algorithm list inside a build that predates the change, so the operator must pull a newer image or request one from the maintainer. The operator should ask the maintainer which build contains the fix and which SSH server it uses, because the two image types are not interchangeable.
Gitea issue 35653What a user cannot change
A user connecting to a Gitea server cannot change the key exchange methods that the server offers. The server's list, set by its configuration and build, is the only input to negotiation, so no client-side option raises the security of the connection. Users can only change the warning's visibility or confirm what was negotiated. Operators sometimes receive reports from many developers at once, and those reports should go to the operator and image maintainer, since the server is the component that needs an update. Users should record the output of ssh -v and the Gitea version they see, so the operator has concrete evidence.
Confirming the fix took effect
The operator confirms the fix by checking both the running image version and the algorithms the server now offers, then repeating a connection test from a developer machine. The Gitea issue reports that the warning went away after updating to rootless 1.25, and a later contributor said the rootful image moved to a later Alpine release with OpenSSH 10.3. These are reports from the issue, not a guarantee for every deployment, so the operator should verify on the server it actually runs. The check is complete when ssh -v shows a post-quantum method, such as mlkem768x25519-sha256, as the negotiated algorithm, and the warning no longer appears on a clean client.
How to check which key exchange Gitea negotiates
This sequence confirms whether your Gitea server offers a post-quantum key exchange and which one a client actually negotiates. It separates what the OpenSSH client supports from what the server offers, so you know whether the warning comes from the server build or its configuration before you change anything.
Confirm the client supports post-quantum key exchange
On the workstation or CI runner that shows the warning, run
ssh -Q kexto list the key exchange algorithms that OpenSSH on that machine can use. Look for entries such as mlkem768x25519-sha256 or sntrup761x25519-sha512. If none appear, the client cannot negotiate a post-quantum method, and the client itself needs to be updated before the server can help. You are done when you have a saved list showing the client's supported methods.Record the negotiated key exchange against Gitea
Run
ssh -v git@your-gitea-host exit 2>&1 | grep 'kex: algorithm:', replacing your-gitea-host with the Gitea server you are testing. The output shows the key exchange both sides agreed on for that connection. If the line names a classical method such as curve25519-sha256 or ecdh-sha2-nistp256, the server did not offer a post-quantum option that the client accepted. Save the output with the date and host name.Read the Gitea version in the container
Find the running Gitea container and check its version with the Gitea binary inside it, using
gitea --versionthroughdocker execor your container runtime's equivalent. Compare the result with the release that your tracking notes say first supported the post-quantum method in the built-in SSH server. Record the exact version string, since the rootless and rootful images can differ in how they handle SSH.Read the OpenSSH version in the container
If your deployment uses the system SSH server rather than the built-in one, run
ssh -Vinside the same container to get the OpenSSH version. Note whether it is 9.0 or later, since OpenSSH has offered post-quantum key agreement by default from that release. If the container is based on a different image, the version here decides which sshd_config template the image uses. Record the full version string next to the Gitea version.Check whether the built-in SSH server is enabled
Inspect the Gitea configuration file, app.ini, or the environment variable that sets it, and look for START_SSH_SERVER. The Gitea configuration cheat sheet says this option defaults to false, and that when it is enabled Gitea uses its built-in SSH server. If it is false or unset, Gitea is relying on the system SSH server, and changes to SSH_SERVER_KEY_EXCHANGES will not apply. Record whether the value is true or false.
Compare the results and decide the next change
Put the four results side by side: client supported methods, negotiated method, Gitea version, and whether the built-in server is enabled. If the client lists a post-quantum method but the negotiated method is classical, the server is the limiting factor, so review SSH_SERVER_KEY_EXCHANGES and the server build. If the client does not list one, update the client first. Confirm the next action with the Gitea documentation for your version before making changes.
Causes of the Gitea warning and the fix for each
This table lists the causes the sources support for the OpenSSH post-quantum warning on Gitea, with the fix for each. Find the row that matches your image and configuration, then apply the fix in that row. Only a server-side change clears the warning for every client that connects to the instance.
| Cause | What it looks like | Fix |
|---|---|---|
| Image built before the update | Rootless or rootful container still runs an older Gitea, such as 1.24.6 with OpenSSH_9.2p1, and clients show the warning | Update to Gitea 1.25 or later for rootless, then rebuild or pull the newer rootful image that uses OpenSSH 10.3 |
| Manual SSH_SERVER_KEY_EXCHANGES in app.ini | The app.ini file sets SSH_SERVER_KEY_EXCHANGES to a list that leaves out post-quantum methods | Remove the manually set SSH_SERVER_KEY_EXCHANGES line so the default recommended algorithms apply, then restart Gitea |
| Client warns against an older server | The OpenSSH client reports the warning, but the Gitea server predates the update that added post-quantum support | Upgrade the Gitea server, since the client only reports what the server offered |
| System SSH in use instead of built-in SSH | START_SSH_SERVER is false or the connection goes through the host's own sshd, so the Gitea setting has no effect | Change the host sshd configuration for post-quantum key exchange, because SSH_SERVER_KEY_EXCHANGES applies only to the built-in server |
| Client hides or ignores the warning | A client config sets WarnWeakCrypto to no-pq-kex for the Gitea host, which hides the warning without changing the server | Remove the no-pq-kex setting if you want the warning shown, and do not treat hiding it as a fix |
| Confirming the change | The warning still appears after a server change, or the negotiated algorithm is still classical | Run ssh -v against the Gitea host and check the kex line, then confirm the warning is gone from clone, fetch and push |
What to change on the Gitea server, in order
The sequence moves Gitea to a release whose built-in SSH server offers post-quantum key exchange, removes any manual override that narrows the offered algorithms, and then reloads the server so the new settings take effect. Each step ends with a check you can run to confirm the warning no longer appears.
Confirm which SSH server your Gitea uses
Find out whether your instance runs the built-in SSH server or the system OpenSSH server, and whether you run the rootful or rootless image. Check the START_SSH_SERVER value in app.ini, which defaults to false, and the container image tag. Only the built-in server reads SSH_SERVER_KEY_EXCHANGES, so this determines which of the following steps apply to you. Note the answer before you change anything, because the rootful and rootless images are described as two incompatible systems with different SSH servers.
Upgrade Gitea to version 1.25 or later
Upgrade the Gitea server to version 1.25 or a later release. A contributor on the Gitea issue reported that Gitea 1.25 is required for the built-in server to offer the post-quantum algorithms. Take a backup of your data and app.ini before upgrading. Confirm the running version with the Gitea version shown in the admin dashboard or the gitea --version command. The step is complete when the reported version is 1.25 or higher.
Remove any manual SSH_SERVER_KEY_EXCHANGES setting
Open app.ini, locate the [server] section, and delete any SSH_SERVER_KEY_EXCHANGES line you set by hand. The contributor advised this because an empty or unset value lets Gitea enable all recommended algorithms, while a manually set list can omit the post-quantum methods. Do not replace the line with another list. The step is complete when the key no longer appears in app.ini and the file still parses correctly.
Recreate or pull the updated container image
Pull the Gitea 1.25 or later image for your deployment, then recreate the container so it runs the new image. For the rootful image, the contributor said the OpenSSH server comes from the Dockerfile template at docker/root/etc/templates/sshd_config, and the issue was closed after a later image moved to OpenSSH 10.3. For the rootless image, the built-in Go SSH server is used. Confirm the image tag and digest after the pull, then start the new container. The step is complete when the container runs the new image.
Reload or restart the Gitea service
Restart the Gitea process or container so the configuration and image changes take effect. For a systemd install, restart the Gitea service unit. For a container, restart the container after the recreate. Confirm the service is listening on the SSH port again by checking the process status and the logs for startup errors. The step is complete when Gitea starts cleanly and the logs show no configuration errors for SSH.
Check the negotiated key exchange from a client
From a client with OpenSSH 10.1 or later, run ssh -v against your Gitea host, replacing the host name with your server, and filter for the negotiated algorithm with grep 'kex: algorithm:'. Also run ssh -Q kex to confirm the client supports the post-quantum methods. The output should show a post-quantum key exchange such as mlkem768x25519-sha256 when the server offers it. The step is complete when the negotiated algorithm is post-quantum and the warning no longer prints on clone, fetch or push.
Leave the client warning in place
Do not add WarnWeakCrypto no-pq-kex or WarnWeakCrypto no to ssh_config to hide the warning. The OpenSSH documentation describes this setting as a client-side switch that suppresses the message but does not change the key exchange the server offers, so the connection stays non-post-quantum. If the warning still appears after the checks above, confirm the server version and negotiated algorithm again before deciding the next step. The step is complete when you have recorded the result of the checks.
How the fix differs for rootless and rootful Gitea images
The rootless image runs Gitea's built-in SSH server, which is written in Go and uses the Go SSH package. Key exchange in this image is controlled by Gitea's own code rather than by an OpenSSH binary in the container. The Gitea issue report on the warning says the rootless image needs Gitea 1.25 to offer post-quantum key exchange, and that the built-in server is enabled only when START_SSH_SERVER is turned on.
- Gitea version: Confirm the container runs Gitea 1.25 or later. The issue report says the warning went away for one commenter after updating the rootless image to 1.25.
- Built-in server: Check that
START_SSH_SERVERis enabled inapp.ini. It defaults to false, and without it Gitea uses system SSH instead. - Manual algorithm list: Remove any manually set
SSH_SERVER_KEY_EXCHANGESfromapp.ini. The contributor advised this because leaving the option empty enables all recommended algorithms. - Default list: The configuration cheat sheet's default list does not include an ML-KEM entry, so a stale override is the most likely cause if the warning persists on 1.25.
After changing the image or configuration, restart the container and repeat the ssh -v check against the server.
The rootful image does not use Gitea's built-in SSH server. It installs an OpenSSH server through its Dockerfile, and that server reads the template at docker/root/etc/templates/sshd_config. Because OpenSSH, not the Go package, handles key exchange here, the rootful and rootless images are separate systems, and a fix for one does not apply to the other.
- Base image: The contributor who closed the issue said the rootful image is now based on a later Alpine release that ships OpenSSH 10.3. Confirm which base image your build uses.
- OpenSSH version: Check the OpenSSH version inside the running container. The issue was first reported against a container running OpenSSH 9.2p1, which predates the 10.x releases that include post-quantum defaults.
- Server template: Review
sshd_configin the template. Do not expectSSH_SERVER_KEY_EXCHANGESinapp.inito change anything here, because that setting applies only to the built-in server. - Image version: The contributor said the warning should no longer occur on the newer base. Confirm the tag you deploy includes that change in the release notes or the issue thread.
After rebuilding or pulling the newer image, verify the negotiated key exchange with the client check from the GitHub post.
Whichever image you run, the warning comes from the OpenSSH client and reports what the server offered. Confirm the result from the client side, using the same host and the same client version each time, so changes in the server are easy to isolate.
- Client support: Run
ssh -Q kexto list the key exchange algorithms your client supports, and confirm a post-quantum method appears. - Negotiated algorithm: Run
ssh -v git@your-gitea-host exit 2>&1 | grep 'kex: algorithm:', replacing the host name with your server, and check the value printed. - Warning text: If the warning still appears, copy the full message, including the line that points to the OpenSSH post-quantum page, and compare it with the server version you recorded.
- Client hiding: Do not treat a
WarnWeakCrypto no-pq-kexline inssh_configas a fix. It only hides the message for that host and leaves the key exchange unchanged.
Keep the output from each check with the image tag, so you can show which build produced which result.
How to confirm the Gitea connection stops reporting the warning
After you change the Gitea server, confirm the fix by running ssh -v against the updated host and reading the negotiated key exchange. Run ssh -v git@your-gitea-host exit 2>&1 | grep 'kex: algorithm:', replacing the host name with the server you tested. The line shows the key exchange the server agreed to. If it names a post-quantum method such as mlkem768x25519-sha256, the server is offering one and the warning should not appear. If the line shows only classical methods such as curve25519-sha256, the server is still offering them, and the warning will continue. Run the check from a client whose OpenSSH is version 10.1 or later, since older clients do not show the warning at all and will tell you nothing about the server.
Gitea issue 35653 includes a commenter who reported that the warning went away after updating to the rootless 1.25 image, which is consistent with the contributor's statement that Gitea 1.25 is required. Treat that as one user's report, not a guarantee for your deployment. Confirm the version your container is actually running, and check that SSH_SERVER_KEY_EXCHANGES is not set manually in app.ini, since the contributor advised removing a manual setting so the defaults apply. Also confirm START_SSH_SERVER is enabled, because the setting only matters when Gitea uses its built-in SSH server.
Afterwards, test clone, fetch and push from several client machines, not only the one you used for the check. Different clients and OpenSSH versions can negotiate differently, and some may still show the warning even when the server offers a post-quantum method. Watch the warning text on each operation, and if it persists on a client that negotiates a post-quantum method, look at that client's own configuration before blaming the server. Note that WarnWeakCrypto no-pq-kex can hide the warning for a host on the client side, but that hides the message without changing what the server offers, so it does not count as a fix.
What can break when the Gitea key exchange changes
Changing Gitea's SSH key exchange affects every client that talks to the built-in SSH server, not only the ones that show the warning. The cards below cover the places where a change can break a working connection, and what to check before and after you make it.
Older clients and automation
Clients built before OpenSSH 9.0 may not offer any post-quantum key exchange, and older automation images can carry old OpenSSH builds. If a client only offers methods Gitea no longer lists, the handshake fails rather than falling back to a weaker one. Before you change SSH_SERVER_KEY_EXCHANGES, list the OpenSSH versions your developers and build agents use and confirm each one still negotiates a method you keep enabled. Run ssh -Q kex on a representative client to see what it supports.
CI runners and pinned host keys
CI runners often hold a copy of Gitea's host key in known_hosts or a baked-in image, and a key exchange change does not change that key, so host verification keeps passing. What breaks is negotiation on runners with older SSH libraries. Check which runner images build your Gitea clones and whether any pin a specific KexAlgorithms list in their own ssh_config. A pin that excludes the method Gitea now prefers will stop those jobs from connecting.
Manual algorithm lists in app.ini
An SSH_SERVER_KEY_EXCHANGES value set by hand in app.ini overrides the defaults, so a list written for an older release can hide the newer methods. The Gitea issue contributor advised removing a manually set value so Gitea uses its recommended algorithms. Search your app.ini for SSH_SERVER_KEY_EXCHANGES before any upgrade, record the current value so you can restore it, and remove it only after you confirm the new build offers what you need.
System SSH versus built-in SSH
The cheat sheet states that SSH_SERVER_KEY_EXCHANGES has no effect on system SSH, so a setting you change only applies when START_SSH_SERVER is enabled and Gitea runs its built-in server. Deployments that route Git over the host's OpenSSH server are governed by that server's sshd_config instead. Confirm which SSH server handles your Git traffic before you expect an app.ini change to alter negotiated algorithms.
Rootless and rootful image differences
The contributor on the Gitea issue said the rootless image uses the Go SSH package and built-in server, while the rootful image uses the OpenSSH server installed by its Dockerfile, and that the two are incompatible systems. Upgrading one image does not change the other, and a configuration tuned for one may not apply to the other. Identify which image you run, then check that image's SSH component version after the change rather than assuming the release number covers both.
Gitea issue 35653FIPS and compliance-mode review
Deployments in FIPS or compliance-mode configurations may restrict which key exchange methods the SSH stack accepts, so a change that adds a newer method can conflict with an approved-algorithm list. Review your compliance baseline and the controls that govern SSH before you edit the key exchange list, and record the change with the people who own those controls. The sources on this page do not state how FIPS-mode builds treat ML-KEM methods, so confirm that with your SSH build's documentation and your assessor.
When to get help with the Gitea SSH warning
Bring in outside help when you cannot make the change yourself. The fix for this warning on Gitea depends on the image you run. The rootless image uses Gitea's built-in SSH server, and the cheat sheet states that SSH_SERVER_KEY_EXCHANGES applies only to that server, with no effect on system SSH. The rootful image uses the OpenSSH server installed by its Dockerfile, configured through the template docker/root/etc/templates/sshd_config. Rootful and rootless are described as two incompatible systems, so if your team is unsure which image runs in production, or cannot rebuild or redeploy the container, an implementation partner can verify the image, the running version and the server configuration before anyone edits anything.
Hosted or vendor-managed Gitea is the clearest case for escalation. If a provider runs the server, you cannot edit app.ini, change the container image or set START_SSH_SERVER, so the change has to come from the vendor. Ask them which Gitea version and SSH server they run, whether they have upgraded to Gitea 1.25 or later (the contributor in issue 35653 said that version is required), and what their timeline is. The issue was closed as completed on 3 August 2026, citing a rootful image based on a later Alpine release with OpenSSH 10.3. Confirm the release that reaches your instance rather than assuming it.
Get help when many hosts or regulated controls are involved. If the warning appears across many developer machines, CI runners or automated jobs, the client-side WarnWeakCrypto no-pq-kex setting is a per-host workaround that hides the warning without changing what the server offers, so it should be a documented, reviewed decision and not a fleet-wide default. If an auditor or assessor will ask for evidence of the change, you need dated records showing the server version before and after, the negotiated algorithm from ssh -v output, and the approval for any suppression. An outside firm can help assemble that evidence, but it does not replace the assessor's conclusion about your controls.
Questions people ask about the Gitea post-quantum warning
Is my Gitea SSH session still encrypted when I see this warning?
Yes. The warning does not mean the connection is unencrypted. It means the key exchange that set up the session did not use a post-quantum algorithm, so the session keys were derived with a method that a future quantum computer could break. Traffic captured today could be decrypted later, which is the risk the warning text names as "store now, decrypt later." The OpenSSH warning text reads "This session may be vulnerable to 'store now, decrypt later' attacks," so the concern is about recorded sessions, not about the session being readable right now. Your clone, fetch and push still run over SSH with encryption in place. What changes is the key exchange algorithm the server offered and the client accepted. To find out which algorithm your session used, run ssh -v git@your-gitea-host exit 2>&1 | grep 'kex: algorithm:' and replace the host name with your server. The line shows the negotiated algorithm, which tells you whether a post-quantum method was used.
How urgent is the Gitea post-quantum SSH warning for my team?
The warning is a prompt to plan the change, not an incident that needs an emergency response. The OpenSSH client raises it when the server offers only non-post-quantum key exchange methods, and the sources do not set a deadline for when that becomes a compliance problem for your organization. Whether it is urgent depends on what your Gitea instance carries. A server that hosts code with long-lived sensitive data, or one reached across untrusted networks, deserves earlier attention than an internal sandbox. Start by confirming which Gitea version you run and whether SSH is served by the built-in server or by system SSH, because that decides where the fix lives. Ask your security or compliance owner whether any contract or internal policy names a migration date for post-quantum cryptography. The sources in this topic do not state one, so check your own obligations rather than assuming one.
Can I ignore or silence the Gitea post-quantum warning?
You can silence it on your own machine, but silencing does not change the server. The OpenBSD ssh_config manual says the warning can be disabled with the no-pq-kex flag of WarnWeakCrypto, and that the value no disables all warnings. The OpenSSH PQ page gives an example with a Match host block that contains the line WarnWeakCrypto no-pq-kex, which hides the warning for that host only. That setting affects the client display and leaves the key exchange the server offers unchanged. If you silence the warning and do nothing on the server, your sessions still use whatever algorithm was negotiated. Silencing is reasonable for a short period while you plan, or for a specific host you have reviewed, but it should be recorded as a deliberate decision. Do not treat a hidden warning as proof that the server was fixed. Confirm the fix with the ssh -v check described above.
Why does the Gitea post-quantum SSH warning appear now?
The warning appeared because OpenSSH 10.1 added a client-side check. OpenSSH 10.1 introduced a warning for connections that negotiate a key agreement algorithm that is not post-quantum, controlled by the ssh_config option WarnWeakCrypto, which defaults to on. Clients that run the newer OpenSSH now report a server that offers only classical key exchange, even though that server worked before. The warning does not reflect a new change in your Gitea instance. It reflects a new client that reports what the server offers. The Gitea issue behind this topic was opened against Gitea 1.24.6, whose container ran OpenSSH_9.2p1, while the client that showed the warning was OpenSSH_10.1. That pairing is why the warning showed up for users connecting from newer clients. The OpenSSH PQ page says the server determines the key exchange, so the fix is a server change or a server build that offers post-quantum methods.
What should I do if I cannot upgrade Gitea right away?
If an upgrade must wait, you can still take steps that reduce exposure while you plan. First, confirm whether your instance uses the built-in SSH server or system SSH, because the Gitea configuration cheat sheet says START_SSH_SERVER defaults to false and that when enabled Gitea uses its built-in SSH server. The cheat sheet also says the SSH_SERVER_KEY_EXCHANGES setting applies only to the built-in SSH server and has no effect for system SSH, so changing it does nothing if you rely on system SSH. Second, check whether app.ini sets SSH_SERVER_KEY_EXCHANGES manually. A contributor in the issue advised removing a manually set value so that the defaults apply, though the defaults listed in the cheat sheet do not include an ML-KEM entry. Third, keep a written record of the decision, the affected users and the date you plan to upgrade. Any change should be tested on a staging copy before it reaches users, and rollback steps should be written down first.
Which Gitea version fixes the post-quantum SSH warning?
The issue thread points to Gitea 1.25 as the version that resolves the warning for the rootless image. A contributor said the rootless image uses the Go SSH package and built-in SSH server, and that the option was left empty to enable all recommended algorithms through PR #34667. The contributor also said Gitea 1.25 is required. A commenter reported that after updating to rootless 1.25 the warning went away, with that report dated 25 February 2026. The same contributor explained that the rootful image uses the OpenSSH server installed by its Dockerfile, with the template docker/root/etc/templates/sshd_config, and that rootful and rootless are two incompatible systems. The issue was closed as completed on 3 August 2026, with the statement that the rootful image is now based on a later Alpine release with OpenSSH 10.3. Confirm which image variant you run before you choose the upgrade path, because the two variants are fixed by different means.
Should I get outside help with the Gitea post-quantum SSH fix?
Outside help is worth considering when the instance is important, the image variant is unclear, or the upgrade touches authentication and access. DeployOpen plans, implements, upgrades, documents and supports self-hosted open-source platforms inside the client's own infrastructure, and most engagements are fixed-scope with the scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so a quote follows from the written scope. Ask any provider to confirm which Gitea version and image variant they will change, how they will verify the negotiated key exchange with ssh -v, how they will document the change for your compliance team, and what rollback path they will use. Ask also what is one-time work and what recurs, such as upgrades and continuous support, and whether the work includes testing. DeployOpen does not issue audit reports or certifications, so a compliance review remains a separate step with an independent assessor.
How do I confirm the Gitea post-quantum SSH warning has stopped?
Confirm the fix from the client side, because that is where the warning appears. Run ssh -Q kex on the client to list the key exchange algorithms the client supports, which GitHub's post describes as the way to see client support. Then run ssh -v git@your-gitea-host exit 2>&1 | grep 'kex: algorithm:' against your Gitea server and read the negotiated algorithm. A post-quantum method such as mlkem768x25519-sha256 means the session used a post-quantum key exchange. The RFC 10042 document defines that method name, along with mlkem768nistp256-sha256 and mlkem1024nistp384-sha384. If the negotiated algorithm is still classical, the warning will return, so check the server version and the SSH_SERVER_KEY_EXCHANGES value. Record the output with the date and the Gitea version, and repeat the check for each client type your team uses, since older clients may not offer the method at all.
How DeployOpen helps fix the Gitea SSH warning
DeployOpen starts by confirming whether your Gitea instance uses the built-in SSH server or system OpenSSH, because the setting that controls key exchange only applies to the built-in server. We then review the image, version and key exchange configuration, make the change, and confirm with your team that clients no longer report the warning.
How we scope
- We confirm whether START_SSH_SERVER is enabled, since that decides which SSH server handles Git connections.
- We record the Gitea version and image type, rootful or rootless, because the two use different SSH stacks.
- We agree a fixed written scope covering the server, clients to test and the confirmation steps before work starts.
How we build
- We check app.ini for a manually set SSH_SERVER_KEY_EXCHANGES and remove it if it overrides the recommended defaults.
- We upgrade Gitea to a release that includes the post-quantum key exchange update, and document the exact version used.
- We test the negotiated algorithm from representative OpenSSH clients to confirm the server offers a post-quantum method.
How we hand over
- You receive a written record of the Gitea version, image, configuration changes and the commands used for testing.
- The handover includes the client check command, so your team can repeat the negotiated algorithm test themselves.
- We document any client that still shows the warning and whether the fix belongs on the client side or the server side.
How we support
- Ongoing support is available as a retainer to cover Gitea upgrades and re-checking after new image releases.
- We can re-run the client tests after your next upgrade, so a regression in key exchange is caught early.
- Ask any provider to confirm in writing which Gitea version, image and configuration the fix covers.

