Repository navigation
Bump org.apache.sshd:sshd-core from 0.8.0 to 2.13.2 - #819
Merged
slachiewicz merged 2 commits intoOct 20, 2025
Merged
Conversation
Co-authored-by: slachiewicz <6705942+slachiewicz@users.noreply.github.com> Upgrade sshd-core dependency from 0.8.0 to 2.13.2
Co-authored-by: slachiewicz <6705942+slachiewicz@users.noreply.github.com>
slachiewicz
force-pushed
the
copilot/bump-sshd-core-version
branch
from
October 19, 2025 16:33
a1e4bd9 to
0d0764e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR upgrades Apache SSHD from version 0.8.0 (released in 2012) to 2.13.2 (latest stable in the 2.x series) to address API incompatibilities and leverage modern, well-maintained SSH server implementation for testing.
Changes
Dependency Updates
Updated
wagon-providers/wagon-ssh-common-test/pom.xml:sshd-core: 0.8.0 → 2.13.2sshd-scp: 2.13.2 (SCP support split into separate module)sshd-sftp: 2.13.2 (SFTP support split into separate module)Code Migrations
SshServerEmbedded.java - Updated to use SSHD 2.x API:
PEMGeneratorHostKeyProviderwithSimpleGeneratorHostKeyProviderScpCommandFactoryfromorg.apache.sshd.scp.serverNativeFileSystemFactoryinstead of custom implementationstop()method signature to throwIOExceptionper SSHD 2.x APITestPublickeyAuthenticator.java:
org.apache.mina.util.Base64to Java's built-injava.util.Base64org.apache.sshd.server.auth.pubkey)TestPasswordAuthenticator.java:
org.apache.sshd.server.auth.password)ShellCommand.java:
Commandinterface implementation to acceptChannelSessionparameter instart()anddestroy()methods as required by SSHD 2.xRemoved Obsolete Code
Deleted custom implementations that are now provided by SSHD 2.x:
ScpCommand.java(458 lines) - Replaced by SSHD 2.x built-in SCP implementationScpCommandFactory.java(93 lines) - Replaced byorg.apache.sshd.scp.server.ScpCommandFactoryImpact
This is a net reduction of 604 lines while upgrading to a modern, actively maintained version of Apache SSHD. The upgrade improves security, reliability, and maintainability of the SSH test infrastructure.