Details
-
Bug
-
Resolution: Done
-
P5: Not important
-
Qt Creator 4.0.0-beta1
-
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
^_`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.