MINA SSHD
  1. MINA SSHD
  2. SSHD-159

client should accept version "SSH-1.99"

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 0.6.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      I'm using SshClient to make a simple connection to a linux box. I'm getting the
      following exception:

      org.apache.sshd.common.SshException: Unsupported protocol version:
      SSH-1.99-OpenSSH_2.9p2
      at
      org.apache.sshd.client.session.ClientSessionImpl.readIdentification(ClientSessionImpl.java:388)
      at
      org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:226)

      I see this code in ClientSessionImpl>readIdentification():

      if (!serverVersion.startsWith("SSH-2.0-"))

      { throw new SshException(SshConstants.SSH2_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED, "Unsupported protocol version: " + serverVersion); }

      That serverVersion.startsWith needs to be a bit more forgiving, especially it needs to accept SSH-1.99.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Lee Breisacher
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development