You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compatibility: cbssh 0.6.0 breaks compatibility with several (old) SSH implementations aborting connection at version banner reception #353
The root cause of this compatibility issue is the strict order of the carriage return and the line feed characters assumed at the end of the SSH version banner and is located in lines 742 and 743 of the sshlib/src/main/kotlin/org/connectbot/sshlib/transport/PacketIO.kt file. To fix this issue, I propose modifying the test this way: if (bytes[bytes.size - 1] == '\r'.code.toByte() || bytes[bytes.size - 1] == '\n'.code.toByte() ) {
Probably, the line 740 needs to be adjusted too this way: if (bannerBytes.size() >= 1) {
to be compatible with implementations sending only the line feed or carriage return character.
Activity
kruton commentedon Oct 18, 2026
Thanks for the report. I'll look into it.