Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can't connect to embedded linux device
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
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
Might be a silly question but do you have sftp-server ?
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".
have you already tried to sftp to your device from a Terminal?
@aha_1980 Sorry for my late reply, I have tried "sftp email@example.com" 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
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...
@aha_1980 Thanks for your reply, I will have a try.