Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. sftp failed with exit code 255
QtWS25 Last Chance

sftp failed with exit code 255

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 3.6k Views
  • 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.
  • S Offline
    S Offline
    Subbu
    wrote on 14 Sept 2022, 18:40 last edited by Subbu
    #1

    Hi, I am new to Qt. I have Qt Creator 8.0.1. My target is Boot2Qt 6.2.1 Toradex Verdin-iMX8MP. The device type is Boot2Qt. My Qt project deploys files via SFTP. The project builds fine on the Qt IDE. However, I am unable to deploy the software to the target via SFTP. When I do the device test (Projects -> Manage Kits -> Devices-> Test), it fails and reports the following:

    Sending echo to device...
    Device replied to echo with expected contents.

    Checking kernel version...
    Linux 5.4.129-0+git.9443377ef940 aarch64

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

    Checking whether "sftp" works...
    "sftp" failed with exit code 255: Permission denied (C:/Users/ABCXYZ/AppData/Local/Temp/QtCreator.TSAlJF).

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

    Device test failed.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JKSH
      Moderators
      wrote on 15 Sept 2022, 02:17 last edited by
      #2

      Hi @Subbu, and welcome!

      Qt Creator simply runs your external SFTP client. Check if the client can connect to your device outside of Qt Creator.

      1. Find out which SFTP client is being used by Qt Creator: "Edit" > "Preferences..." > "Devices" > "SSH"
      2. From your Command Prompt, manually run the SFTP client listed in the previous step (for example, "C:\Program Files\Git\usr\bin\sftp.exe" root@192.168.0.50 -- use your own path to sftp.exe and IP address)

      Does this work? Do you see any error messages?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Subbu
        wrote on 15 Sept 2022, 14:46 last edited by Subbu
        #3

        Thanks. I tried your input. Here is the command prompt output. After doing this, I again attempted the device test connection on the Qt. I still got the same permission denied error.

        sftpOutput.PNG

        FYI, I have another computer that has same project settings and configuration. There it connects just fine. The one difference between the two is Qt version. I have Qt 8.0.1. The other one has Qt 7.0.1

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JKSH
          Moderators
          wrote on 15 Sept 2022, 15:21 last edited by JKSH
          #4

          The issue is addressed at https://bugreports.qt.io/browse/QTCREATORBUG-28167. You have 2 options:

          • Install the preview version of Qt Creator 8.0.2, OR
          • Don't use C:\Windows\System32\OpenSSH\sftp.exe. Instead, install Git for Windows and use its copy of sftp.exe

          @Subbu said in sftp failed with exit code 255:

          The one difference between the two is Qt version. I have Qt 8.0.1. The other one has Qt 7.0.1

          To clarify, you have Qt Creator 8.0.1 and 7.0.1.

          • Qt Creator is the IDE
          • Qt is the libraries

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          2
          • S Offline
            S Offline
            Subbu
            wrote on 15 Sept 2022, 16:25 last edited by
            #5

            Thanks a lot @JKSH for the quick responses. I will try one of these options.

            1 Reply Last reply
            0

            5/5

            15 Sept 2022, 16:25

            • Login

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