Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra logging to troubleshoot issue #670 #674

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

hierynomus
Copy link
Owner

No description provided.

@hierynomus
Copy link
Owner Author

@jmatias-assia Can you try to run with a build from this PR? I've added a logging line just before the encryption that shows the entire packet including length and padding to see what the server chokes on.

@jmatias-assia
Copy link

Here it is:

-08 11:47:02,361 [pool-InterpreterHandler_SNMP-thread-1] INFO  transport.TransportImpl  - Client identity string: SSH-2.0-SSHJ_0.31.1_SNAPSHOT
2021-04-08 11:47:02,391 [pool-InterpreterHandler_SNMP-thread-1] INFO  transport.TransportImpl  - Server identity string: SSH-2.0-RomSShell_4.31
2021-04-08 11:47:02,392 [pool-InterpreterHandler_SNMP-thread-1] DEBUG transport.KeyExchanger  - Sending SSH_MSG_KEXINIT
2021-04-08 11:47:02,393 [reader] TRACE transport.Decoder  - Received packet #0: 14 8f 3d 30 09 0e 5a 51 61 29 78 79 fb e0 23 54 ad 00 00 00 1a 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68 61 31 00 00 00 07 73 73 68 2d 64 73 73 00 00 00 08 33 64 65 73 2d 63 62 63 00 00 00 08 33 64 65 73 2d 63 62 63 00 00 00 09 68 6d 61 63 2d 73 68 61 31 00 00 00 09 68 6d 61 63 2d 73 68 61 31 00 00 00 04 6e 6f 6e 65 00 00 00 04 6e 6f 6e 65 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-04-08 11:47:02,394 [reader] TRACE transport.TransportImpl  - Received packet KEXINIT
2021-04-08 11:47:02,395 [reader] DEBUG transport.KeyExchanger  - Received SSH_MSG_KEXINIT
2021-04-08 11:47:02,395 [pool-InterpreterHandler_SNMP-thread-1] TRACE transport.Encoder  - Encoding packet #0: 14 8c e0 fa d3 79 48 38 97 06 f1 be 99 fe c4 cb 9c 00 00 02 a7 63 75 72 76 65 32 35 35 31 39 2d 73 68 61 32 35 36 2c 63 75 72 76 65 32 35 35 31 39 2d 73 68 61 32 35 36 40 6c 69 62 73 73 68 2e 6f 72 67 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67 65 2d 73 68 61 32 35 36 2c 65 63 64 68 2d 73 68 61 32 2d 6e 69 73 74 70 35 32 31 2c 65 63 64 68 2d 73 68 61 32 2d 6e 69 73 74 70 33 38 34 2c 65 63 64 68 2d 73 68 61 32 2d 6e 69 73 74 70 32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67 65 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 35 2d 73 68 61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 37 2d 73 68 61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 38 2d 73 68 61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 32 35 36 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 35 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 35 2d 73 68 61 32 35 36 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 35 2d 73 68 61 33 38 34 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 61 33 38 34 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 61 35 31 32 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 38 2d 73 68 61 35 31 32 40 73 73 68 2e 63 6f 6d 2c 65 78 74 2d 69 6e 66 6f 2d 63 00 00 00 ab 73 73 68 2d 65 64 32 35 35 31 39 2c 65 63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 35 32 31 2c 65 63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 33 38 34 2c 65 63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 32 35 36 2c 72 73 61 2d 73 68 61 32 2d 35 31 32 2c 72 73 61 2d 73 68 61 32 2d 32 35 36 2c 73 73 68 2d 72 73 61 2d 63 65 72 74 2d 76 30 31 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 73 73 68 2d 64 73 73 2d 63 65 72 74 2d 76 30 31 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 73 73 68 2d 72 73 61 2c 73 73 68 2d 64 73 73 00 00 01 a3 61 65 73 31 32 38 2d 63 62 63 2c 61 65 73 31 32 38 2d 63 74 72 2c 61 65 73 31 39 32 2d 63 62 63 2c 61 65 73 31 39 32 2d 63 74 72 2c 61 65 73 32 35 36 2d 63 62 63 2c 61 65 73 32 35 36 2d 63 74 72 2c 61 65 73 31 32 38 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 61 65 73 32 35 36 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 74 72 2c 63 61 73 74 31 32 38 2d 63 62 63 2c 63 61 73 74 31 32 38 2d 63 74 72 2c 69 64 65 61 2d 63 62 63 2c 69 64 65 61 2d 63 74 72 2c 73 65 72 70 65 6e 74 31 32 38 2d 63 62 63 2c 73 65 72 70 65 6e 74 31 32 38 2d 63 74 72 2c 73 65 72 70 65 6e 74 31 39 32 2d 63 62 63 2c 73 65 72 70 65 6e 74 31 39 32 2d 63 74 72 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 62 63 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 74 72 2c 33 64 65 73 2d 63 62 63 2c 33 64 65 73 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 32 38 2d 63 62 63 2c 74 77 6f 66 69 73 68 31 32 38 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 39 32 2d 63 62 63 2c 74 77 6f 66 69 73 68 31 39 32 2d 63 74 72 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 62 63 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 74 72 2c 74 77 6f 66 69 73 68 2d 63 62 63 2c 61 72 63 66 6f 75 72 2c 61 72 63 66 6f 75 72 31 32 38 2c 61 72 63 66 6f 75 72 32 35 36 00 00 01 a3 61 65 73 31 32 38 2d 63 62 63 2c 61 65 73 31 32 38 2d 63 74 72 2c 61 65 73 31 39 32 2d 63 62 63 2c 61 65 73 31 39 32 2d 63 74 72 2c 61 65 73 32 35 36 2d 63 62 63 2c 61 65 73 32 35 36 2d 63 74 72 2c 61 65 73 31 32 38 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 61 65 73 32 35 36 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 74 72 2c 63 61 73 74 31 32 38 2d 63 62 63 2c 63 61 73 74 31 32 38 2d 63 74 72 2c 69 64 65 61 2d 63 62 63 2c 69 64 65 61 2d 63 74 72 2c 73 65 72 70 65 6e 74 31 32 38 2d 63 62 63 2c 73 65 72 70 65 6e 74 31 32 38 2d 63 74 72 2c 73 65 72 70 65 6e 74 31 39 32 2d 63 62 63 2c 73 65 72 70 65 6e 74 31 39 32 2d 63 74 72 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 62 63 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 74 72 2c 33 64 65 73 2d 63 62 63 2c 33 64 65 73 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 32 38 2d 63 62 63 2c 74 77 6f 66 69 73 68 31 32 38 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 39 32 2d 63 62 63 2c 74 77 6f 66 69 73 68 31 39 32 2d 63 74 72 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 62 63 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 74 72 2c 74 77 6f 66 69 73 68 2d 63 62 63 2c 61 72 63 66 6f 75 72 2c 61 72 63 66 6f 75 72 31 32 38 2c 61 72 63 66 6f 75 72 32 35 36 00 00 01 46 68 6d 61 63 2d 73 68 61 31 2c 68 6d 61 63 2d 73 68 61 31 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2c 68 6d 61 63 2d 6d 64 35 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2d 39 36 2c 68 6d 61 63 2d 6d 64 35 2d 39 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2c 68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 32 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 32 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2d 39 36 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 00 00 01 46 68 6d 61 63 2d 73 68 61 31 2c 68 6d 61 63 2d 73 68 61 31 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2c 68 6d 61 63 2d 6d 64 35 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2d 39 36 2c 68 6d 61 63 2d 6d 64 35 2d 39 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2c 68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 32 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 32 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2d 39 36 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 00 00 00 04 6e 6f 6e 65 00 00 00 04 6e 6f 6e 65 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-04-08 11:47:02,396 [pool-InterpreterHandler_SNMP-thread-1] TRACE transport.Encoder  - Encrypting packet #0: 00 00 09 74 09 14 8c e0 fa d3 79 48 38 97 06 f1 be 99 fe c4 cb 9c 00 00 02 a7 63 75 72 76 65 32 35 35 31 39 2d 73 68 61 32 35 36 2c 63 75 72 76 65 32 35 35 31 39 2d 73 68 61 32 35 36 40 6c 69 62 73 73 68 2e 6f 72 67 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67 65 2d 73 68 61 32 35 36 2c 65 63 64 68 2d 73 68 61 32 2d 6e 69 73 74 70 35 32 31 2c 65 63 64 68 2d 73 68 61 32 2d 6e 69 73 74 70 33 38 34 2c 65 63 64 68 2d 73 68 61 32 2d 6e 69 73 74 70 32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67 65 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 35 2d 73 68 61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 37 2d 73 68 61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 38 2d 73 68 61 35 31 32 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 32 35 36 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 35 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 35 2d 73 68 61 32 35 36 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 35 2d 73 68 61 33 38 34 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 61 33 38 34 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 36 2d 73 68 61 35 31 32 40 73 73 68 2e 63 6f 6d 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 38 2d 73 68 61 35 31 32 40 73 73 68 2e 63 6f 6d 2c 65 78 74 2d 69 6e 66 6f 2d 63 00 00 00 ab 73 73 68 2d 65 64 32 35 35 31 39 2c 65 63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 35 32 31 2c 65 63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 33 38 34 2c 65 63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 32 35 36 2c 72 73 61 2d 73 68 61 32 2d 35 31 32 2c 72 73 61 2d 73 68 61 32 2d 32 35 36 2c 73 73 68 2d 72 73 61 2d 63 65 72 74 2d 76 30 31 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 73 73 68 2d 64 73 73 2d 63 65 72 74 2d 76 30 31 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 73 73 68 2d 72 73 61 2c 73 73 68 2d 64 73 73 00 00 01 a3 61 65 73 31 32 38 2d 63 62 63 2c 61 65 73 31 32 38 2d 63 74 72 2c 61 65 73 31 39 32 2d 63 62 63 2c 61 65 73 31 39 32 2d 63 74 72 2c 61 65 73 32 35 36 2d 63 62 63 2c 61 65 73 32 35 36 2d 63 74 72 2c 61 65 73 31 32 38 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 61 65 73 32 35 36 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 74 72 2c 63 61 73 74 31 32 38 2d 63 62 63 2c 63 61 73 74 31 32 38 2d 63 74 72 2c 69 64 65 61 2d 63 62 63 2c 69 64 65 61 2d 63 74 72 2c 73 65 72 70 65 6e 74 31 32 38 2d 63 62 63 2c 73 65 72 70 65 6e 74 31 32 38 2d 63 74 72 2c 73 65 72 70 65 6e 74 31 39 32 2d 63 62 63 2c 73 65 72 70 65 6e 74 31 39 32 2d 63 74 72 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 62 63 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 74 72 2c 33 64 65 73 2d 63 62 63 2c 33 64 65 73 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 32 38 2d 63 62 63 2c 74 77 6f 66 69 73 68 31 32 38 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 39 32 2d 63 62 63 2c 74 77 6f 66 69 73 68 31 39 32 2d 63 74 72 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 62 63 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 74 72 2c 74 77 6f 66 69 73 68 2d 63 62 63 2c 61 72 63 66 6f 75 72 2c 61 72 63 66 6f 75 72 31 32 38 2c 61 72 63 66 6f 75 72 32 35 36 00 00 01 a3 61 65 73 31 32 38 2d 63 62 63 2c 61 65 73 31 32 38 2d 63 74 72 2c 61 65 73 31 39 32 2d 63 62 63 2c 61 65 73 31 39 32 2d 63 74 72 2c 61 65 73 32 35 36 2d 63 62 63 2c 61 65 73 32 35 36 2d 63 74 72 2c 61 65 73 31 32 38 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 61 65 73 32 35 36 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 74 72 2c 63 61 73 74 31 32 38 2d 63 62 63 2c 63 61 73 74 31 32 38 2d 63 74 72 2c 69 64 65 61 2d 63 62 63 2c 69 64 65 61 2d 63 74 72 2c 73 65 72 70 65 6e 74 31 32 38 2d 63 62 63 2c 73 65 72 70 65 6e 74 31 32 38 2d 63 74 72 2c 73 65 72 70 65 6e 74 31 39 32 2d 63 62 63 2c 73 65 72 70 65 6e 74 31 39 32 2d 63 74 72 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 62 63 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 74 72 2c 33 64 65 73 2d 63 62 63 2c 33 64 65 73 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 32 38 2d 63 62 63 2c 74 77 6f 66 69 73 68 31 32 38 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 39 32 2d 63 62 63 2c 74 77 6f 66 69 73 68 31 39 32 2d 63 74 72 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 62 63 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 74 72 2c 74 77 6f 66 69 73 68 2d 63 62 63 2c 61 72 63 66 6f 75 72 2c 61 72 63 66 6f 75 72 31 32 38 2c 61 72 63 66 6f 75 72 32 35 36 00 00 01 46 68 6d 61 63 2d 73 68 61 31 2c 68 6d 61 63 2d 73 68 61 31 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2c 68 6d 61 63 2d 6d 64 35 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2d 39 36 2c 68 6d 61 63 2d 6d 64 35 2d 39 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2c 68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 32 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 32 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2d 39 36 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 00 00 01 46 68 6d 61 63 2d 73 68 61 31 2c 68 6d 61 63 2d 73 68 61 31 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2c 68 6d 61 63 2d 6d 64 35 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2d 39 36 2c 68 6d 61 63 2d 6d 64 35 2d 39 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2c 68 6d 61 63 2d 73 68 61 32 2d 32 35 36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 32 2c 68 6d 61 63 2d 73 68 61 32 2d 35 31 32 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2d 39 36 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 00 00 00 04 6e 6f 6e 65 00 00 00 04 6e 6f 6e 65 00 00 00 00 00 00 00 00 00 00 00 00 00 a4 80 7b a6 ea a1 04 f8 64
2021-04-08 11:47:02,397 [reader] DEBUG transport.KeyExchanger  - Negotiated algorithms: [ kex=diffie-hellman-group1-sha1; sig=ssh-dss; c2sCipher=3des-cbc; s2cCipher=3des-cbc; c2sMAC=hmac-sha1; s2cMAC=hmac-sha1; c2sComp=none; s2cComp=none; rsaSHA2Support=false ]
2021-04-08 11:47:02,408 [reader] TRACE transport.Encoder  - Encoding packet #1: 1e 00 00 00 80 14 57 f6 c1 3c 95 93 63 24 cf d3 bb 7f f3 45 9f 8a 1e 15 23 56 91 31 9f f8 23 94 d1 c6 34 e7 52 28 58 2c e9 7d b2 69 1b 03 b0 d5 a1 0c ef 46 19 02 e0 28 20 f9 99 5f 3c a3 f8 39 44 ae c2 b7 42 3a f4 64 24 9f e8 87 c0 45 e1 4b 2a d5 94 d8 94 46 c7 04 aa 65 35 26 81 f4 57 64 f8 c1 38 8b cf 0e 18 1e 0c 34 cc aa 09 f4 ac 91 74 56 e5 be 64 b2 13 48 07 64 e3 69 ea 85 57 51 19 ec 74 08 71
2021-04-08 11:47:02,408 [reader] TRACE transport.Encoder  - Encrypting packet #1: 00 00 00 8c 06 1e 00 00 00 80 14 57 f6 c1 3c 95 93 63 24 cf d3 bb 7f f3 45 9f 8a 1e 15 23 56 91 31 9f f8 23 94 d1 c6 34 e7 52 28 58 2c e9 7d b2 69 1b 03 b0 d5 a1 0c ef 46 19 02 e0 28 20 f9 99 5f 3c a3 f8 39 44 ae c2 b7 42 3a f4 64 24 9f e8 87 c0 45 e1 4b 2a d5 94 d8 94 46 c7 04 aa 65 35 26 81 f4 57 64 f8 c1 38 8b cf 0e 18 1e 0c 34 cc aa 09 f4 ac 91 74 56 e5 be 64 b2 13 48 07 64 e3 69 ea 85 57 51 19 ec 74 08 71 b9 b7 9d ac 1d d4
2021-04-08 11:47:02,410 [reader] TRACE transport.Decoder  - Received packet #1: 01 00 00 00 02 00 00 00 11 42 61 64 20 70 61 63 6b 65 74 20 6c 65 6e 67 74 68 00 00 00 00
2021-04-08 11:47:02,410 [reader] TRACE transport.TransportImpl  - Received packet DISCONNECT
2021-04-08 11:47:02,412 [reader] INFO  transport.TransportImpl  - Received SSH_MSG_DISCONNECT (reason=PROTOCOL_ERROR, msg=Bad packet length)
2021-04-08 11:47:02,412 [reader] ERROR transport.TransportImpl  - Dying because - Bad packet length
net.schmizz.sshj.transport.TransportException: [PROTOCOL_ERROR] Bad packet length
	at net.schmizz.sshj.transport.TransportImpl.gotDisconnect(TransportImpl.java:565)
	at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:521)
	at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:113)
	at net.schmizz.sshj.transport.Decoder.received(Decoder.java:203)
	at net.schmizz.sshj.transport.Reader.run(Reader.java:60)
2021-04-08 11:47:02,412 [reader] INFO  transport.TransportImpl  - Disconnected - PROTOCOL_ERROR
2021-04-08 11:47:02,413 [reader] DEBUG transport.KeyExchanger  - Got notified of net.schmizz.sshj.transport.TransportException: [PROTOCOL_ERROR] Bad packet length
2021-04-08 11:47:02,413 [reader] DEBUG transport.TransportImpl$NullService  - Notified of net.schmizz.sshj.transport.TransportException: [PROTOCOL_ERROR] Bad packet length

@hierynomus
Copy link
Owner Author

Hi @jmatias-assia,

I have no idea why it is failing for you. I've looked at all the changes between 0.26.0 and 0.27.0 and the only one I can imagine is that the Encoder class has different behaviour, but I wouldn't know why this would trigger the exception on your server.

Differences: v0.26.0...v0.27.0

Is there a possibility to obtain the server side logs? The appliance should log at least something.

@jmatias-assia
Copy link

Sorry, I can't get any logs - it's an embedded server :(

Thanks for your support anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants