Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can't connect to embedded linux device
Forum Updated to NodeBB v4.3 + New Features

Can't connect to embedded linux device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LengJianHanShuang
    wrote on 7 May 2020, 09:47 last edited by
    #1

    When using "Device Test" on Qt Creator to connect to linux device, the following error happens:

    Connecting to host...
    Checking kernel version...
    Linux 4.14.98+g5d6cbeafb80c aarch64

    Checking if specified ports are available...
    All specified ports are available.

    Checking whether an SFTP connection can be set up...
    Error setting up SFTP connection: File transfer failed: sh: /usr/libexec/sftp-server: No such file or directory
    Connection closed

    Checking whether rsync works...
    rsync failed with exit code 12: sh: rsync: command not found
    rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
    rsync error: error in rsync protocol data stream (code 12) at io.c(235) [Receiver=3.1.2]

    Deployment to this device will not work out of the box.

    But actually, there is sftp(but I don't know how it searhes /usr/libexec) on my pc, and the ssh setting on QtCreator as following:

    Path to ssh executable: /usr/bin/ssh
    Path to sftp executable: /usr/bin/sftp
    Path to ssh-askpass executable: /home/samuel/Qt5.14.2/Tools/QtCreator/libexec/qtcreator/qtc-askpass
    Path to ssh-keygen executable:/usr/bin/ssh-keygen

    Anybody know why? please help me with this situation

    Follow your dreams

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 May 2020, 18:35 last edited by
      #2

      Hi,

      Might be a silly question but do you have sftp-server ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply 9 May 2020, 01:28
      2
      • S SGaist
        7 May 2020, 18:35

        Hi,

        Might be a silly question but do you have sftp-server ?

        L Offline
        L Offline
        LengJianHanShuang
        wrote on 9 May 2020, 01:28 last edited by
        #3

        @SGaist
        Thanks for your reply, I'm not familiar with sftp, what step should I do to make sure I have a sftp-server on my PC?
        the config under /etc/ssh/sshd_config hasn't been changed, "Subsystem sftp /usr/lib/openssh/sftp-server".

        Follow your dreams

        A 1 Reply Last reply 9 May 2020, 06:57
        0
        • L LengJianHanShuang
          9 May 2020, 01:28

          @SGaist
          Thanks for your reply, I'm not familiar with sftp, what step should I do to make sure I have a sftp-server on my PC?
          the config under /etc/ssh/sshd_config hasn't been changed, "Subsystem sftp /usr/lib/openssh/sftp-server".

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 9 May 2020, 06:57 last edited by
          #4

          @LengJianHanShuang

          have you already tried to sftp to your device from a Terminal?

          Regards

          Qt has to stay free or it will die.

          L 1 Reply Last reply 20 May 2020, 08:32
          2
          • A aha_1980
            9 May 2020, 06:57

            @LengJianHanShuang

            have you already tried to sftp to your device from a Terminal?

            Regards

            L Offline
            L Offline
            LengJianHanShuang
            wrote on 20 May 2020, 08:32 last edited by
            #5

            @aha_1980 Sorry for my late reply, I have tried "sftp root@xxxx.xxxx.xxxx.xxxx" on my pc, and it always turns out :
            sh:/usr/libexec/sftp-server:No such file or directory.

            No matter what value I changed to /etc/ssh/sshd_config "Subsystem sftp /usr/lib/openssh/sftp-server" or "Subsystem sftp internal-sftp.

            Do you have any idea? please help me with this situation

            Follow your dreams

            A 1 Reply Last reply 20 May 2020, 09:09
            0
            • L LengJianHanShuang
              20 May 2020, 08:32

              @aha_1980 Sorry for my late reply, I have tried "sftp root@xxxx.xxxx.xxxx.xxxx" on my pc, and it always turns out :
              sh:/usr/libexec/sftp-server:No such file or directory.

              No matter what value I changed to /etc/ssh/sshd_config "Subsystem sftp /usr/lib/openssh/sftp-server" or "Subsystem sftp internal-sftp.

              Do you have any idea? please help me with this situation

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 20 May 2020, 09:09 last edited by
              #6

              @LengJianHanShuang

              Honestly I have no idea, but it seems the problem is unrelated to Qt, it already happens on system level.

              https://unix.stackexchange.com/questions/93584/sftp-server-fails-to-start might give you some inspirations...

              Regards

              Qt has to stay free or it will die.

              L 1 Reply Last reply 20 May 2020, 09:48
              0
              • A aha_1980
                20 May 2020, 09:09

                @LengJianHanShuang

                Honestly I have no idea, but it seems the problem is unrelated to Qt, it already happens on system level.

                https://unix.stackexchange.com/questions/93584/sftp-server-fails-to-start might give you some inspirations...

                Regards

                L Offline
                L Offline
                LengJianHanShuang
                wrote on 20 May 2020, 09:48 last edited by
                #7

                @aha_1980 Thanks for your reply, I will have a try.

                Follow your dreams

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved