-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update sshj to 0.38.0 and fix heartbeat issue (#1360)
### Motivation SSHJ released a new version (0.38.0) in which they improved their support for strict key exchanges. Unfortunately this also introduced a bug on their end, as the hearbeater is writing packets to the server which aren't allowed during key exchange (KEX_INIT must be the first packet, however due to the hearbeater an IGNORE packet is the first leading to the error `strict KEX violation: KEXINIT was not the first packet`). ### Modification Bump SSHJ to 0.38.0 and write a custom heartbeater which checks if the key exchange is done before sending heartbeat packets. ### Result SSHJ is updated to 0.38.0 and everything works as expected again.
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 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