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

Password authentication in Devices does not work for a device running Dropbear SSH server with custom shell

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.9.0-beta1
    • Qt Creator 3.6.0, Qt Creator 4.1.0
    • Remote Linux
    • None
    • d7178b88c4b2572fb83b28f8178940766216deed (qt-creator/qt-creator/master)

    Description

      Clicking the test button shows "SSH connection failure: Server rejected password."

      The username and password are definitely correct, and attempting to SSH into the same device from Linux command line works perfectly fine.

      The command used to start the SSH server on the device is:

      dropbear -j -k -B -r $rsa_key -d $dss_key

      The Dropbear server uses completely default configuration. The default shell is a custom shell. The server indicates that it does not support inline commands (i.e., ssh user@host 'foo'). The custom shell, given some input X, will become /bin/sh.

      I don't know if the presence of a custom shell makes this problem unsolvable, but perhaps an option could be added to send additional input X (as mentioned above) to the server after connecting, and then Creator could finish sending whatever other commands it intended to.

      I'm not too familiar with Unix shell initialization process so I don't know if Qt Creator should expand its functionality to handle this situation or whether the device should be set up differently. In any case a better error message would help too.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes