You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "tk0214 (Jira)" <ji...@apache.org> on 2021/06/22 11:41:00 UTC

[jira] [Commented] (SSHD-1174) sshd as client broken because Invalid packet length

    [ 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