Hi,
After tranferring approx 1GB of data over
a forwarded port my server (openssh 3.7.1)
terminates the connection to j2ssh with the
message "Disconnecting: Protocol error:
expected packet type 30, got 20"
This seems to be caused by the the function
TransportProcotolCommon.processMessage()
which tests but never resets byte counters.
After 1GB of data has been exchanged this
function attempts to initiate key reexchage
repeatedly rather than just once.
Patch to correct this attached.
Paul
Key reexchange patch