[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mina-dev
Subject:    [jira] [Commented] (SSHD-1174) sshd as client broken because Invalid packet length
From:       "tk0214 (Jira)" <jira () apache ! org>
Date:       2021-06-22 11:41:00
Message-ID: JIRA.13381081.1622271288000.635070.1624362060166 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/SSHD-1174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17367255#comment-17367255 \
] 

tk0214 commented on SSHD-1174:
------------------------------

hello. the java code i could provided. just connect to the server

when error occured, the invalid pachet is

bc b9 7a 9b 7f 92 31 01 94 0a 35 1e 5c f4 00 12 52 66 86 e6 d3 75 c6 68 3e bb d1 82   \
..z...1

when use putty, no this problem

it seemed the pachet has so many whitespace after 82.

  

> sshd as client broken because Invalid packet length
> ---------------------------------------------------
> 
> Key: SSHD-1174
> URL: https://issues.apache.org/jira/browse/SSHD-1174
> Project: MINA SSHD
> Issue Type: Bug
> Reporter: tk0214
> Priority: Major
> Labels: user-response-required
> 
> when connect to some ssh server, sometimes the connection was broken
> the detail exception
> org.apache.sshd.common.session.helpers.SessionHelper.exceptionCaught(SessionHelper.java:1130) \
> org.apache.sshd.common.session.helpers.SessionHelper.exceptionCaught(SessionHelper.java:1130) \
> org.apache.sshd.common.SshException: Invalid packet length: -341240110 at \
> org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1227) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:348) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:63) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:368) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:346) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:343) \
> ~[sshd-core-2.4.0.jar:2.4.0] 
> plus
> details org.apache.sshd.common.session.helpers.SessionTimeoutListener.sessionException(SessionTimeoutListener.java:66) \
> details org.apache.sshd.common.session.helpers.SessionTimeoutListener.sessionException(SessionTimeoutListener.java:66) \
> org.apache.sshd.common.SshException: Invalid packet length: 862175523 at \
> org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1227) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:348) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:63) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:368) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:346) \
> ~[sshd-core-2.4.0.jar:2.4.0] at \
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:343) \
> ~[sshd-core-2.4.0.jar:2.4.0]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic