-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JSch: Fix detection of supported RSA sig schemes
KeyExchange.guess() only returns the first server/client match for each category, and the client algorithms are taken from the HostKeyAlgorithms OpenSSH config file keyword rather than the PubkeyAcceptedAlgorithms keyword. Thus, fd34df2 effectively made it so that an RSA signature scheme could only be used if it was the first server-supported algorithm listed with the HostKeyAlgorithms keyword. Instead, set Session.supportedRSAMethods to the list of RSA signature schemes that the server supports, and attempt to use the first one of those algorithms that is specified with PubkeyAcceptedAlgorithms. This fulfills the intent of fd34df2 and emulates the behavior of OpenSSH.
- Loading branch information
1 parent
06c6c2c
commit b632a9c
Showing
4 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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