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
Qt 6.11 is out! See what's new in the release blog

Can't connect to embedded linux device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 4.2k 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.
  • LengJianHanShuangL Offline
    LengJianHanShuangL Offline
    LengJianHanShuang
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      LengJianHanShuangL 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

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

        LengJianHanShuangL Offline
        LengJianHanShuangL Offline
        LengJianHanShuang
        wrote on 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

        aha_1980A 1 Reply Last reply
        0
        • LengJianHanShuangL LengJianHanShuang

          @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".

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 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.

          LengJianHanShuangL 1 Reply Last reply
          2
          • aha_1980A aha_1980

            @LengJianHanShuang

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

            Regards

            LengJianHanShuangL Offline
            LengJianHanShuangL Offline
            LengJianHanShuang
            wrote on 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

            aha_1980A 1 Reply Last reply
            0
            • LengJianHanShuangL LengJianHanShuang

              @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

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 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.

              LengJianHanShuangL 1 Reply Last reply
              0
              • aha_1980A aha_1980

                @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

                LengJianHanShuangL Offline
                LengJianHanShuangL Offline
                LengJianHanShuang
                wrote on 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