| commit | c11bfccaa39d5c89c3f3059f976dd1e4d0947cb6 | [log] [tgz] |
|---|---|---|
| author | Fred Rothganger <frothga@sandia.gov> | Mon Apr 03 08:30:29 2023 -0600 |
| committer | Thomas Wolf <twolf@apache.org> | Sun Apr 09 15:23:37 2023 +0200 |
| tree | 6e3bb297a8e92590dd1c3b63d86899a1db67d459 | |
| parent | f88741409b1473b3e63a91d2f1d52e689527067a [diff] |
GH-281: Follow first-match semantics specified for ssh config file OpenSSH applies _all_ values from _all_ matching entries in an SSH config file. For most keys, the first setting encountered is taken and later values are ignored. Some keys, such as IdentityFile, behave differently and build up a list instead. Previously, the code tried to figure out a "best match", and applied only the values from that entry. The new behavior is compatible with OpenSSH. Move the findMatchingEntries() methods from HostPatternsHolder to HostConfigEntry, where they make more sense. Add tests for the new behavior, and adapt some existing tests. Bug: https://github.com/apache/mina-sshd/issues/281

Apache MINA SSHD is a 100% pure java library to support the SSH protocols on both the client and server side. It does not aim at being a replacement for the SSH client or SSH server from Unix operating systems, but rather provides support for Java based applications requiring SSH support.
The library can leverage several I/O back-ends:
AsynchronousSocketChannels.Bug reports and improvement or feature requests can be filed at the GitHub issue tracker or at the Apache issue tracker.
Sensitive issues such as security vulnerabilities must be reported through private channels, not via either issue tracker.
Java 8+ (as of version 1.3)
The code only requires the core abstract slf4j-api module. The actual implementation of the logging API can be selected from the many existing adaptors.
sshd-common - contains basic classes used throughout the project as well as code that does not require client or server network support.
sshd-core - contains the basic SSH client/server code implementing the connection, transport, channels, forwarding, etc..
sshd-sftp - contains the server side SFTP subsystem and the SFTP client code.
sshd-scp - contains the server side SCP command handler and the SCP client code.
sshd-ldap - contains server-side password and public key authenticators that use an LDAP server.
sshd-git - contains replacements for JGit SSH session factory.
sshd-osgi - contains an artifact that combines sshd-common and sshd-core so it can be deployed in OSGi environments.
sshd-putty - contains code that can parse PUTTY key files.
sshd-openpgp - contains code that can parse OpenPGP key files (with some limitations - see relevant section)
sshd-cli - contains simple templates for command-line client/server - used to provide look-and-feel similar to the Linux ssh/sshd commands.
sshd-contrib - experimental code that is currently under review and may find its way into one of the other artifacts (or become an entirely new artifact - e.g., sshd-putty evolved this way).
Including tests
mvn clean install
Without tests
mvn -Pquick clean install