Handle SSH post-quantum key exchange warnings in JSch and Apache MINA SSHD

If a Java application using JSch or Apache MINA SSHD shows the SSH post-quantum key exchange warning, the library version and its key exchange settings decide whether the connection negotiates a post-quantum algorithm. The Java team that owns the application has to act, since the server operator controls only what the server offers.

On this page

What the SSH post-quantum key exchange warning means in JSch and MINA SSHD

If a JSch or Apache MINA SSHD client in your Java application reports that a connection did not negotiate a post-quantum key exchange, the connection has not used one of the hybrid post-quantum algorithms the client could offer, and the Java team that owns the application must act on it. The session itself normally stays encrypted with a classical key exchange, so the warning is a signal that your client and server agreed on a weaker key exchange than you intended, not that traffic is being sent in the clear. Treat it as a planning item for your post-quantum migration rather than an incident, unless your own policy or a federal contract requires post-quantum key exchange on that path, in which case it needs prompt attention.

Whether the warning appears, and what fixes it, depends on three things you control: the library version, the Java version, and the key exchange configuration. JSch is the maintained mwiede/jsch fork, whose README gives the Maven coordinates com.github.mwiede:jsch and version 2.28.0 as the reference build, and it requires Java 8. The hybrid algorithms curve25519-sha256 and curve448-sha512 need Java 11 or later, or Bouncy Castle on the classpath. Apache MINA SSHD added ML-KEM hybrid key exchanges in 2.15.0, and it supports the same hybrid options when Bouncy Castle is present.

Before changing anything, confirm which version your application actually loads, since transitive dependencies often pull in an older copy. Then check the kex value in effect at runtime, because the default list and the algorithms the client will accept are set by the library, and any kex override your code or a jsch.kex system property sets will replace it. Compare the negotiated algorithm against what your server offers in its own configuration before deciding whether to change the client or the server.

Who has to act on the warning in JSch and MINA SSHD

The warning can be fixed in more than one place, and each place belongs to a different party. The Java team controls the client code and the library version, while the server operator decides which algorithms the server offers. Knowing who owns each lever tells you who to contact and what your team can change without waiting on anyone else.

The Java team owns the client

Your Java team controls the code that opens the SSH session, the JSch or MINA SSHD dependency version, and any kex setting the application sets with session.setConfig or the jsch.kex system property. These are the first things to check when a connection reports no post-quantum key exchange. Confirm which library and version your build actually resolves, because a dependency can be pulled in transitively. Check whether the application pins a kex list, since a pinned list can exclude the hybrid algorithms the server expects.

JSch fork README

The server operator sets the offer

The SSH server operator decides which key exchange algorithms the server offers and in what order. JSch and MINA SSHD can only negotiate what both sides share, so a client upgrade alone will not add a post-quantum algorithm the server does not offer. If the server rejects the handshake or offers only classical algorithms, the operator must enable the hybrid options in the server configuration. Ask the operator which algorithms they offer before changing client code.

Hosted endpoints limit your changes

If your team connects to a hosted SSH endpoint, such as a managed Git service or file transfer platform, you can change only your client side. The provider controls the server's algorithm list, and you cannot add or remove key exchange methods on their end. Your client settings can only narrow or reorder what the provider already offers. Contact the provider's support team to ask which key exchange algorithms their endpoint supports and when they plan to offer hybrid options.

Library maintainers publish the list

The maintainers of the JSch fork and Apache MINA SSHD publish which algorithms each release supports, and which ones need an extra dependency such as Bouncy Castle or a newer Java runtime. Their release notes and ChangeLog show when hybrid algorithms were added or fixed. Check the release notes for your version before assuming an algorithm is available. The maintainers, not your team, decide what the library can negotiate.

MINA SSHD 2.15.0 notes

How to check which key exchange JSch or MINA SSHD negotiated

This sequence shows you which key exchange algorithm a Java client actually agreed with the server, and where a failed handshake stopped. You enable logging, run one connection, and read the lines the library writes. Those lines tell you whether the post-quantum hybrid algorithms were offered and chosen.

  1. Confirm the JSch and Java versions in use

    Check the mwiede/jsch version declared in your build file and the Java runtime that runs the application. The README gives the Maven coordinates as groupId com.github.mwiede, artifactId jsch, and lists 2.28.0 as the version it documents. The README FAQ says the fork needs Java 8, and that curve25519-sha256 and curve448-sha512 need Java 11 or later or Bouncy Castle on the classpath. Record both versions before you read any log output, because the algorithms on offer depend on them. Confirm the result with java -version on the host that runs the application.

  2. Set a logger that writes INFO messages

    JSch writes the negotiated key exchange at INFO level, so the logger must be able to emit INFO. The JSch wiki names four built-in options: JplLogger, JulLogger, Log4j2Logger and Slf4jLogger. Call JSch.setLogger() to set a global logger, JSch.setInstanceLogger() to set one for a single JSch instance, or Session.setLogger() to set one for a single session. Set it before the connection starts, since a logger attached later misses the handshake. You know it is working when the next connection produces log output at all.

  3. Run one connection to the server

    Open one connection to the affected server from the same application and host you use in production. Use the same host key, user and configuration, so the server's offer is the one you see in the log. If you use the jsch.kex system property or session.setConfig("kex", ...), leave those settings as they are for this run, so the log reflects what the application really sends. Let the connection either succeed or fail, then stop the run. Keep the log output from this single attempt for the next step.

  4. Read the kex algorithm lines in the log

    Search the log for lines beginning "kex: algorithm: ", which show the key exchange algorithm that was negotiated, and "kex: host key algorithm: ". The lines beginning "kex: server->client" and "kex: client->server" show the cipher chosen for each direction. If these lines appear, the handshake completed and the named algorithm is the one in use. If the lines are missing, the handshake did not reach the negotiation step. Check the logger configuration and the connection attempt before you read anything into the absence.

  5. Locate where the handshake stopped

    If the connection failed, find the handshake markers that Session.java writes. The markers include "SSH_MSG_KEXINIT sent" and "SSH_MSG_KEXINIT received", "Doing strict KEX", and "SSH_MSG_NEWKEYS sent" and "SSH_MSG_NEWKEYS received". A run that shows the first KEXINIT pair but no NEWKEYS messages stopped during key exchange. A run that stops before the second KEXINIT means the server closed the connection earlier. Note the last marker that appears, since it tells you which side of the handshake to investigate next.

  6. Check for an algorithm negotiation failure

    Look in the log for JSchAlgoNegoFailException. JSch throws this exception when the client and the server share no algorithm in a category, and the message identifies the category that failed. If the failure names the key exchange category, compare the server's offer with the algorithms the client is configured to use. The default "kex" value and the "CheckKexes" value in JSch.java are the starting points for that comparison. Confirm the failure by rerunning with the server's supported key exchanges listed in your own notes.

  7. Compare the result against the server's offer

    Write down the negotiated algorithm and the key exchanges the server advertises, using the server's own documentation or configuration to list its offer. A post-quantum hybrid algorithm such as mlkem768x25519-sha256 should appear in both lists if the handshake was meant to use it. If the server offers it and the log shows a different algorithm, the client's "kex" configuration is the likely cause. If neither side offers a post-quantum algorithm, the warning reflects the configuration, not the library. Check the MINA SSHD release notes and the mwiede/jsch ChangeLog for the release that added the algorithm you expected.

  8. Record the versions and the result for the next run

    Save the JSch version, the Java version, the logger you used, the negotiated algorithm or the failing marker, and the server host you tested. Rerun the same steps after any change to the library version or the kex configuration, and compare the new log against this record. The fix is complete when the negotiated algorithm matches the one the server should use and the handshake markers reach NEWKEYS received on both sides. Keep this record with the change ticket so the outcome can be reviewed later.

Causes of the warning in JSch and MINA SSHD and the fix for each

This table pairs each cause of the post-quantum key exchange warning in JSch and Apache MINA SSHD with the change that addresses it. Read each row against the library version and runtime you run, and start with the first cause that matches your setup. The main takeaway is that most cases come down to an outdated library, a Java runtime without Bouncy Castle, or a configured kex list that leaves out the post-quantum algorithms.

CauseWhat it meansFix
JSch older than 0.2.22The JSch build predates the ML-KEM hybrid key exchanges, so they are never offered.Upgrade to the maintained mwiede/jsch fork, currently 2.28.0 per its README, and confirm the version on the classpath.
JSch between 0.2.22 and 0.2.25The build offers sntrup761x25519-sha512 and some ML-KEM hybrids, but the mlkem768x25519-sha256 and related algorithms in 0.2.25 are missing.Upgrade to 0.2.25 or later, ideally 2.28.0, so the full set of ML-KEM hybrids is available.
Java below 11 without Bouncy Castlecurve25519-sha256 needs Java 11 or later, or Bouncy Castle on the classpath, so it cannot be negotiated.Run on Java 11 or later, or add Bouncy Castle to the classpath as the mwiede/jsch README describes.
Configured kex list omits post-quantum algorithmsA kex value set in code, a JVM property or a config file overrides the default, which begins with mlkem768x25519-sha256.Remove the custom kex value, or add the post-quantum algorithms to it with session.setConfig("kex", ...) or jsch.kex.
JSch 2.27.9 and later checking only configured KEXFrom 2.27.9, JSch checks only the algorithms in the configured kex list, so a short list can cause a negotiation failure.Include the post-quantum algorithms the server offers in the kex list, or remove the restrictive setting so the default list applies.
MINA SSHD with fipsEnabled setThe org.apache.sshd.security.fipsEnabled property, added in 2.14.0, disables non-FIPS key exchanges including sntrup761x25519-sha512.Leave fipsEnabled unset if your policy allows it, or confirm with your security team that FIPS mode is required and accept the limited key exchange set.
MINA SSHD older than 2.15.0Version 2.15.0 added GH-606 ML-KEM hybrid key exchange support, so earlier versions do not offer it.Upgrade Apache MINA SSHD to 2.15.0 or later and retest the connection against the server.

What to change in JSch and MINA SSHD to negotiate a post-quantum key exchange

This sequence moves a Java application onto a JSch or Apache MINA SSHD version that offers post-quantum hybrid key exchange, makes the runtime able to use the required curve algorithms, and sets the key exchange list so the connection negotiates a post-quantum method the server accepts. Each step ends with a check you can run to confirm the change took effect.

  1. Confirm the library version in use

    Find out which JSch or Apache MINA SSHD version your application actually loads, not only the version listed in your build file. For JSch, check the dependency tree for the artifact com.github.mwiede:jsch, which is the maintained fork. For MINA SSHD, check for org.apache.sshd dependencies. Record the version, because the next step depends on whether it is current enough. Run the dependency report from your build tool and confirm the version appears in the resolved tree.

  2. Upgrade JSch or MINA SSHD

    Upgrade the library your application uses. For JSch, set the dependency to groupId com.github.mwiede, artifactId jsch, version 2.28.0, which is the top version in the fork's ChangeLog. The fork's README says it needs Java 8 or later. For Apache MINA SSHD, upgrade to version 2.15.0 or later, which the release notes list as adding ML-KEM hybrid key exchanges. Rebuild the application and confirm the new version appears in the resolved dependency tree.

  3. Add Bouncy Castle on Java 10 or earlier

    The JSch fork's README says the curve25519-sha256 and curve448-sha512 algorithms need Java 11 or later, or Bouncy Castle on the classpath. Check your runtime version with java -version. If the runtime is Java 10 or earlier, add a Bouncy Castle provider jar to the application classpath. The MINA SSHD standards document says curve25519-sha256 needs Bouncy Castle before Java 11, and that Bouncy Castle adds the hybrid key exchanges when present. Confirm the provider loads by checking the startup log for the key exchanges it reports.

  4. Set the key exchange list

    Choose one of three ways to set the key exchange list, then keep the post-quantum algorithms already in the list. In code, call session.setConfig with the key kex and a value that starts with the existing default, for example session.getConfig("kex") followed by a comma and the extra algorithm. You can also pass the jsch.kex system property at startup, which the README describes as equivalent to JSch.setConfig. The third option is an OpenSSH-style KexAlgorithms line in the configuration. Only append algorithms, and do not replace the list, so mlkem768x25519-sha256 and the other post-quantum entries stay first in order.

  5. Set the MINA SSHD FIPS flag where required

    If your environment runs in a FIPS-validated mode, set the system property org.apache.sshd.security.fipsEnabled to true when you use MINA SSHD. The 2.14.0 release notes say that when this property is true, non-FIPS key exchanges are disabled, including sntrup761x25519-sha512. This setting limits the algorithms the client offers, so confirm with your compliance owner that the FIPS setting is the one your environment requires before you enable it. Skip this step if your environment does not use FIPS mode.

  6. Restart the application

    Restart the application after each change. The key exchange setting and the system property are read when a session starts or when the JVM starts, so a running process keeps the old values. Stop the application fully, start it again, and confirm the new version and settings are in use. A rebuild alone does not change a process that is already running.

  7. Check the negotiated key exchange in the log

    Attach an INFO-capable logger, such as the built-in JplLogger or the Slf4jLogger, using JSch.setLogger, JSch.setInstanceLogger or Session.setLogger. Connect to the server and look for the lines beginning kex: algorithm, which name the negotiated key exchange. If the client and server share no algorithm in a category, JSch throws JSchAlgoNegoFailException, so an error of that type points to a mismatch in the list. If a handshake stops, the SSH_MSG_KEXINIT and SSH_MSG_NEWKEYS log lines show how far it got. Confirm the negotiated algorithm is one of the post-quantum entries you expect.

How the JSch or MINA SSHD fix differs by build tool and runtime

Build tools decide which JSch or MINA SSHD version reaches the runtime, so the first check is the resolved dependency tree, not the version written in the build file. For JSch, the maintained fork is published under the Maven coordinates com.github.mwiede:jsch, and the README names version 2.28.0 as the current release. Teams that pin an older JSch or inherit one through a transitive dependency will not get the newer key exchange algorithms.

  • Declare the fork directly: Use groupId com.github.mwiede and artifactId jsch with version 2.28.0 or later in pom.xml or the equivalent build.gradle entry.
  • Check transitive copies: Run mvn dependency:tree or gradle dependencies to find any older JSch that a parent library pulls in.
  • Use Java 11 or later for curve25519: The README says curve25519-sha256 and curve448-sha512 need Java 11 or later or Bouncy Castle on the classpath.
  • Add Bouncy Castle when Java is older: If the runtime stays on Java 8, add a Bouncy Castle provider to the dependency set, since MINA SSHD's standards document says curve25519-sha256 needs Bouncy Castle before Java 11.
  • Confirm the resolved version in the artifact: After the build, check the version in the packaged jar, not only the build file.

After changing dependencies, rebuild, then run the application against the target server and confirm the negotiated algorithm in its logs.

How to confirm the JSch or MINA SSHD fix worked

Once you have changed the key exchange configuration in JSch or Apache MINA SSHD, confirm that a new connection negotiates the algorithm you intended. Rerun the connection with logging turned on at INFO level or lower. In JSch, set a logger with JSch.setLogger() for the whole process, JSch.setInstanceLogger() for one JSch instance, or Session.setLogger() for one session. The built-in options named on the JSch wiki are JplLogger, JulLogger, Log4j2Logger and Slf4jLogger, so use whichever logging framework your application already runs. Without an INFO-capable logger, the negotiated algorithm lines are not written, and you will be checking nothing.

In the log, find the lines beginning kex: algorithm: , which name the negotiated key exchange. When the server supports it and your configuration allows it, the line should show a post-quantum algorithm such as mlkem768x25519-sha256. The kex: host key algorithm: line and the kex: server->client and kex: client->server cipher lines should also match what you expect. If the server does not offer a post-quantum algorithm, the line will show a classical algorithm, which is a valid result and not a failure. Check the server's supported list with its own administrator or documentation before deciding that the client is at fault. Also confirm that no JSchAlgoNegoFailException is thrown. That exception means the client and server share no algorithm in a category, so a successful connection without it is the outcome you want.

Next, read the handshake markers in the same log. SSH_MSG_KEXINIT sent and SSH_MSG_KEXINIT received should both appear, followed by SSH_MSG_NEWKEYS sent and SSH_MSG_NEWKEYS received. If the log stops after one of the KEXINIT markers, the handshake failed at that point, and the surrounding lines usually show whether negotiation or the key exchange itself broke. For MINA SSHD, confirm the same outcome with its logging and check the release notes for your version, since support for the hybrid algorithms depends on the version and whether Bouncy Castle is on the classpath. Repeat this check after every upgrade of JSch, MINA SSHD, the JDK or Bouncy Castle. Dependency changes can add or drop algorithms, and a version bump that once worked can start to fail. Keep a saved log from the passing run so that a later comparison is quick.

What can break when JSch or MINA SSHD changes its key exchange

Changing the key exchange list in JSch or Apache MINA SSHD can stop a connection from completing, because the client and server must share at least one algorithm in each category. The four cases below cover the most common ways a working connection breaks, and each one is worth checking before and after a library upgrade.

Older servers with no common algorithm

An older SSH server may offer only key exchange algorithms that the updated JSch fork no longer prefers or includes. When the two sides share no algorithm in a category, JSch throws JSchAlgoNegoFailException during the handshake. Check the server's offered list against the client's configured kex value, and confirm whether the server can be upgraded or whether the client must re-add an older algorithm. Re-adding weaker algorithms should be a documented, time-limited exception, reviewed by the security team.

JSch configuration docs

Pinned algorithm lists in automation

Scripts, deployment tools and CI runners often hard-code a kex value so builds behave the same every time. A list pinned before a fork added new algorithms can silently exclude the hybrid post-quantum options that the server now expects, and the job fails only after the library upgrade lands. Search the repository and pipeline configuration for kex and setConfig, and record which list each job uses before upgrading the library version.

mwiede/jsch README

FIPS mode disables sntrup761x25519

MINA SSHD can run in FIPS mode through the system property org.apache.sshd.security.fipsEnabled. When that property is true, non-FIPS key exchanges, including sntrup761x25519-sha512, are disabled, so a client that expects that algorithm may find no match. Confirm whether the runtime sets this property, and check whether the server offers a FIPS-approved hybrid option before changing any client settings.

MINA SSHD 2.14.0 notes

Java 8 needs Bouncy Castle for curve25519

The mwiede/jsch README says the fork needs Java 8, and that curve25519-sha256 and curve448-sha512 need Java 11 or later or Bouncy Castle on the classpath. On a Java 8 runtime without Bouncy Castle, those algorithms cannot be used, so a server that prefers them will negotiate something else or fail. Check the runtime version and the classpath for Bouncy Castle jars before assuming a key exchange change is the cause.

mwiede/jsch README

When to get help with a JSch or MINA SSHD key exchange problem

Some JSch and Apache MINA SSHD key exchange problems can be fixed by the Java team alone, by changing a dependency version or a single kex setting. Others need outside help, and the first decision is whether your team controls the library at all. If the application ships with a JSch or MINA SSHD build that the Java team cannot upgrade, because a vendor bundles it, a change-freeze applies, or a parent framework pins the version, then changing the kex list is the only lever left, and that can break connections to servers that still rely on older algorithms. Escalate in that case, and ask the vendor which release of mwiede/jsch or Apache MINA SSHD it ships and whether a newer build is planned. The version numbers and algorithm additions in this topic come from the release notes and ChangeLog, so compare your build against them before you ask.

A second case is a server that belongs to another organization. A partner's SFTP host, a supplier's Git endpoint or a hosted API may negotiate key exchange on its own schedule, and no change on your side will make it offer what it does not offer. Your team can still collect the evidence a partner needs: the exact library name and version, the key exchange list the client offers and the negotiated algorithm from the INFO log lines, and the JSchAlgoNegoFailException or the SSH_MSG_KEXINIT lines if the handshake fails. Send that to the partner and ask them to name the algorithms their server supports and any date they have set for changing them. The same is true when many services built on the library show the warning at once. Shared code and a shared dependency point to one fix in one place, which is a better use of outside help than patching each service.

A third case is a regulated environment that needs evidence of the change. If an auditor, a customer security review or an internal risk committee asks for proof that a Java service now uses a post-quantum hybrid key exchange, a log line is only part of the answer. Record the dependency version, the kex value in effect, the logger configuration and a test connection that shows the negotiated algorithm, and keep the evidence with the change record. DeployOpen can plan, implement and document these changes and prepare the evidence for an assessment, but it does not issue audit reports or certifications, and the assessor makes that determination. Where a fix would also weaken the algorithm list to restore a connection, bring in the security owner before the change is made.

Questions Java teams ask about the SSH post-quantum warning in JSch and MINA SSHD

Is my SSH connection still encrypted when I see the post-quantum warning?

Yes. The warning reports that the negotiated key exchange is not a post-quantum hybrid algorithm, but the session is still encrypted with the algorithms both sides agreed on. The warning describes which key exchange was chosen, not whether traffic is protected. Confirm what your library actually negotiated by enabling INFO-level logging and reading the kex: algorithm: line, which names the key exchange in use. If you need to know whether a specific post-quantum key exchange was offered, check the kex setting on the session and the server's supported list, since the log only shows the result of the negotiation.

Is the post-quantum SSH warning urgent for my Java application?

Treat it as planned work, not an emergency. The warning tells you the handshake used a classical key exchange, and whether that matters depends on your data's lifetime and your organization's migration timeline. Check whether your team has a migration plan, which systems handle long-lived sensitive data, and whether your server offers a post-quantum key exchange at all. Upgrading the library is the usual first step. The mwiede/jsch README states version 2.28.0 is the current Maven coordinate, and its ChangeLog shows post-quantum key exchanges were added in 0.2.22 and 0.2.25. Ask your security team to set the priority, since that decision depends on your own risk profile.

Can I ignore or silence the SSH post-quantum warning in JSch?

You can stop the log output, but silencing it does not change the key exchange. The warning is a log message, so raising the logger threshold above INFO or removing the logger hides it. That makes the negotiated algorithm invisible to your operations team, which is a poor trade. A better approach is to keep the log at INFO for the key exchange lines, then track which algorithm each host negotiates. Use the JSch logging options (JSch.setLogger(), JSch.setInstanceLogger() or Session.setLogger()) and check the mwiede/jsch wiki for the logger that fits your framework. Record the decision in your change log if you intentionally accept classical key exchange for a given host.

Why does the post-quantum SSH warning appear now in JSch and MINA SSHD?

It appears now because post-quantum key exchanges have been added to both libraries and to OpenSSH-compatible servers, and tools are reporting which algorithm each handshake uses. The mwiede/jsch ChangeLog records sntrup761x25519-sha512 in 0.2.16 and 0.2.22, and mlkem768x25519-sha256 along with other ML-KEM hybrids in 0.2.25. Apache MINA SSHD added ML-KEM hybrid key exchanges in 2.15.0 (GH-606). A library that is older than these releases will not offer them, so the server may fall back to a classical algorithm. Compare your library version against these release notes to see why your handshake is classical.

What do I do if I cannot upgrade JSch or MINA SSHD?

Start by confirming whether the upgrade is blocked by a dependency, a vendor, or a policy. If you cannot upgrade, you can still control the key exchange list through configuration. In JSch, set the kex config value with session.setConfig(), or use the JVM property jsch.kex at application startup. The README says jsch.kex works analogously to JSch.setConfig(). Note that the default list is not always the same as the list you need, so check the default in JSch.java on your branch. If your server requires an algorithm that your library cannot offer, the connection will fail with JSchAlgoNegoFailException, which signals that no shared algorithm exists in that category. Plan the upgrade and document the interim exception with your security team.

Should my team get outside help with the post-quantum SSH migration?

Get help if the migration touches many services, if your team lacks someone who can read JSch or MINA SSHD logs, or if you need evidence for an assessment. DeployOpen plans and implements self-hosted platforms inside client infrastructure, and runs security testing, which can include checking how your SSH clients negotiate key exchange. DeployOpen does not issue audit reports or certifications, so an independent auditor is still needed for formal attestation. A quote follows from a written scope that lists the libraries, servers and environments covered. Ask any vendor for the scope and deliverables in writing before the work starts.

How much effort does it take to fix the SSH warning in JSch and MINA SSHD?

Effort depends on how many applications use these libraries, how many library versions you run, and whether the servers you connect to offer post-quantum key exchange. The cost components are the time to inventory affected applications, the time to upgrade or configure each library, testing against each server, and the time to document the change. Upgrading a library is usually a one-time task per application, while log monitoring recurs. The sources for this topic do not give a duration or price, so ask your team to estimate from an inventory of the applications that open SSH sessions. Use that inventory to build a quote with clear line items.

How DeployOpen helps Java teams fix SSH post-quantum warnings

DeployOpen works through JSch and Apache MINA SSHD the same way on each engagement: first confirm what the server offers, then set key exchange in the library and its logger, then test the handshake. The written scope fixes which applications, libraries and servers are covered before any code or configuration changes.

How we scope

  • Inventory every Java application that opens SSH sessions with JSch or Apache MINA SSHD, including library versions.
  • Record which key exchange algorithms each target SSH server offers, so the client list matches what the server accepts.
  • Agree in writing whether fixes cover the configuration only, or also the library upgrade to a current JSch fork or MINA SSHD release.

How we build

  • Set the kex list in code or with the jsch.kex system property, and confirm the change takes effect at application startup.
  • Confirm curve25519-sha256 and curve448-sha512 are available through Java 11 or later, or Bouncy Castle on the classpath.
  • Enable an INFO-capable logger and check the logged negotiated algorithm against the server's offered list.

How we hand over

  • Deliver the configuration changes, dependency versions and logger settings as documented code changes the client's team can review.
  • Document the handshake log lines to look for, including where SSH_MSG_KEXINIT and SSH_MSG_NEWKEYS messages stop if a connection fails.
  • Provide a short runbook for the JSchAlgoNegoFailException case, covering which algorithm lists to compare when no match is found.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, library upgrades and continuous testing are available as a retainer.
  • Retesting after a server or library upgrade is included in the retainer scope, so changes to the offered key exchange list are caught before they reach production.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.