sftp failed with exit code 255
-
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 aarch64Checking 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.
-
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.
- Find out which SFTP client is being used by Qt Creator: "Edit" > "Preferences..." > "Devices" > "SSH"
- 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?
-
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.
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
-
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