Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15744

Some SSH server identification strings are not supported by QtCreator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P5: Not important
    • Qt Creator 4.9.0-beta1
    • Qt Creator 4.0.0-beta1
    • Remote Linux
    • None
    • Note that the given ID string is not valid as per RFC 4253, section 4.2, which means the SSH server is simply misconfigured. It seems that working around this should be possible, though.
    • d7178b88c4b2572fb83b28f8178940766216deed (qt-creator/qt-creator/master)

    Description

      In the SSH library the server identification string is compared with the following regular expression (sshconnection.cpp; line 389):

      SSH-([]!"#$!&'()*+,.\/0-9:;<=>?@A-Z[
      ^_`a-z

      {|}~])-[]!"#$!&'()*,.\/0-9:;<=>?@A-Z[
      ^_`a-z{|}

      ~](?: .)?

      However this regex does not allow there to be this last hyphen that exists in this string for example: "SSH-2.0-OpenSSH_7.1p1-hpn14v9".

      Trying to connect to such a server gives this error in QtCreator: "SSH Protocol error: Server Identification string "SSH-2.0-OpenSSH_7.1p1-hpn14v9" is invalid."

      Therefore some SSH servers can not be connected to although there is no obvious reason why.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            casparom Caspar Romot
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes