Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-296

Support SSH_MSG_KEX_DH_GEX_REQUEST_OLD message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.11.0
    • None
    • Windows 7 64 bits
      Java 1.7.0_45
      PuTTY 0.63

    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

      Attachments

        1. putty.log
          22 kB
          Clecio Varjao

        Activity

          People

            gnodet Guillaume Nodet
            cvarjao Clecio Varjao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: