mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clecio Varjao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SSHD-296) Error connecting via Putty: Protocol error: expected packet 34, got 30
Date Mon, 03 Mar 2014 20:53:20 GMT

     [ https://issues.apache.org/jira/browse/SSHD-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Clecio Varjao updated SSHD-296:
-------------------------------

    Description: 
connecting via PuTTY causes: Disconnecting: Protocol error: expected packet 34, got 30

Test Case:
https://github.com/cvarjao/jenkins-sshd/blob/master/src/test/java/org/apache/sshd/PlinkClientTest.java

note: assumes plink is in the windows PATH


02:07:11.376 [pool-2-thread-4] DEBUG o.a.s.s.s.ServerSession - Received SSH_MSG_KEXINIT
02:07:11.376 [pool-2-thread-4] INFO  o.a.s.s.s.ServerSession - Kex: server->client aes128-ctr
hmac-sha2-256 none
02:07:11.377 [pool-2-thread-4] INFO  o.a.s.s.s.ServerSession - Kex: client->server aes128-ctr
hmac-sha2-256 none
02:07:11.377 [pool-2-thread-5] DEBUG o.a.s.c.i.n.Nio2Session - Read 16 bytes
02:07:11.377 [pool-2-thread-5] TRACE o.a.s.s.s.ServerSession - Received packet #2: 1e 00 00
04 00
02:07:11.378 [pool-2-thread-5] DEBUG o.a.s.c.i.n.Nio2Session - Caught exception, now calling
handler
02:07:11.381 [pool-2-thread-5] WARN  o.a.s.s.s.ServerSession - Exception caught
org.apache.sshd.common.SshException: Protocol error: expected packet 34, got 30
	at org.apache.sshd.server.kex.DHGEX.next(DHGEX.java:99) ~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:390)
~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)
~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:717) ~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)
~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.io.nio2.Nio2Session$1.completed(Nio2Session.java:188) [sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.io.nio2.Nio2Session$1.completed(Nio2Session.java:174) [sshd-core-0.10.0.jar:0.10.0]
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126) [na:1.7.0_45]
	at sun.nio.ch.Invoker$2.run(Invoker.java:206) [na:1.7.0_45]
	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112) [na:1.7.0_45]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]
	at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]
02:07:11.381 [pool-2-thread-5] INFO  o.a.s.s.s.ServerSession - Disconnecting: Protocol error:
expected packet 34, got 30

  was:
connecting via PuTTY causes: Disconnecting: Protocol error: expected packet 34, got 30

02:07:11.376 [pool-2-thread-4] DEBUG o.a.s.s.s.ServerSession - Received SSH_MSG_KEXINIT
02:07:11.376 [pool-2-thread-4] INFO  o.a.s.s.s.ServerSession - Kex: server->client aes128-ctr
hmac-sha2-256 none
02:07:11.377 [pool-2-thread-4] INFO  o.a.s.s.s.ServerSession - Kex: client->server aes128-ctr
hmac-sha2-256 none
02:07:11.377 [pool-2-thread-5] DEBUG o.a.s.c.i.n.Nio2Session - Read 16 bytes
02:07:11.377 [pool-2-thread-5] TRACE o.a.s.s.s.ServerSession - Received packet #2: 1e 00 00
04 00
02:07:11.378 [pool-2-thread-5] DEBUG o.a.s.c.i.n.Nio2Session - Caught exception, now calling
handler
02:07:11.381 [pool-2-thread-5] WARN  o.a.s.s.s.ServerSession - Exception caught
org.apache.sshd.common.SshException: Protocol error: expected packet 34, got 30
	at org.apache.sshd.server.kex.DHGEX.next(DHGEX.java:99) ~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:390)
~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)
~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:717) ~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)
~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
~[sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.io.nio2.Nio2Session$1.completed(Nio2Session.java:188) [sshd-core-0.10.0.jar:0.10.0]
	at org.apache.sshd.common.io.nio2.Nio2Session$1.completed(Nio2Session.java:174) [sshd-core-0.10.0.jar:0.10.0]
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126) [na:1.7.0_45]
	at sun.nio.ch.Invoker$2.run(Invoker.java:206) [na:1.7.0_45]
	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112) [na:1.7.0_45]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]
	at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]
02:07:11.381 [pool-2-thread-5] INFO  o.a.s.s.s.ServerSession - Disconnecting: Protocol error:
expected packet 34, got 30


> Error connecting via Putty: Protocol error: expected packet 34, got 30
> ----------------------------------------------------------------------
>
>                 Key: SSHD-296
>                 URL: https://issues.apache.org/jira/browse/SSHD-296
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>         Environment: Windows 7 64 bits
> Java 1.7.0_45
> PuTTY 0.63
>            Reporter: Clecio Varjao
>
> connecting via PuTTY causes: Disconnecting: Protocol error: expected packet 34, got 30
> Test Case:
> https://github.com/cvarjao/jenkins-sshd/blob/master/src/test/java/org/apache/sshd/PlinkClientTest.java
> note: assumes plink is in the windows PATH
> 02:07:11.376 [pool-2-thread-4] DEBUG o.a.s.s.s.ServerSession - Received SSH_MSG_KEXINIT
> 02:07:11.376 [pool-2-thread-4] INFO  o.a.s.s.s.ServerSession - Kex: server->client
aes128-ctr hmac-sha2-256 none
> 02:07:11.377 [pool-2-thread-4] INFO  o.a.s.s.s.ServerSession - Kex: client->server
aes128-ctr hmac-sha2-256 none
> 02:07:11.377 [pool-2-thread-5] DEBUG o.a.s.c.i.n.Nio2Session - Read 16 bytes
> 02:07:11.377 [pool-2-thread-5] TRACE o.a.s.s.s.ServerSession - Received packet #2: 1e
00 00 04 00
> 02:07:11.378 [pool-2-thread-5] DEBUG o.a.s.c.i.n.Nio2Session - Caught exception, now
calling handler
> 02:07:11.381 [pool-2-thread-5] WARN  o.a.s.s.s.ServerSession - Exception caught
> org.apache.sshd.common.SshException: Protocol error: expected packet 34, got 30
> 	at org.apache.sshd.server.kex.DHGEX.next(DHGEX.java:99) ~[sshd-core-0.10.0.jar:0.10.0]
> 	at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:390)
~[sshd-core-0.10.0.jar:0.10.0]
> 	at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)
~[sshd-core-0.10.0.jar:0.10.0]
> 	at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:717) ~[sshd-core-0.10.0.jar:0.10.0]
> 	at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)
~[sshd-core-0.10.0.jar:0.10.0]
> 	at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
~[sshd-core-0.10.0.jar:0.10.0]
> 	at org.apache.sshd.common.io.nio2.Nio2Session$1.completed(Nio2Session.java:188) [sshd-core-0.10.0.jar:0.10.0]
> 	at org.apache.sshd.common.io.nio2.Nio2Session$1.completed(Nio2Session.java:174) [sshd-core-0.10.0.jar:0.10.0]
> 	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126) [na:1.7.0_45]
> 	at sun.nio.ch.Invoker$2.run(Invoker.java:206) [na:1.7.0_45]
> 	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
[na:1.7.0_45]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]
> 	at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]
> 02:07:11.381 [pool-2-thread-5] INFO  o.a.s.s.s.ServerSession - Disconnecting: Protocol
error: expected packet 34, got 30



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message