2023-03-26 04:34 PM
I am having trouble how to setup the Linux system on the STM32MP1 so that I can use sftp to upload data gathered by the device to an external server.
What happens is that once the connection is established it immediately closes again, so there is no time between lines 13 and 14 in the console text below:
root@stm32mp1:~# sftp user@server.com
/usr/bin/ssh: Ignoring unknown configuration option 'ForwardX11 no'
/usr/bin/ssh: Ignoring unknown configuration option 'PermitLocalCommand no'
/usr/bin/ssh: Ignoring unknown configuration option 'ClearAllForwardings yes'
/usr/bin/ssh: Ignoring unknown configuration option 'ForwardAgent no'
WARNING: Ignoring unknown option --
Host 'server.com' is not in the trusted hosts file.
(ssh-ed25519 fingerprint sha1!! .........)
Do you want to continue connecting? (y/n) y
user@server.com's password:
Connected to server.com.
sftp>
root@stm32mp1:~#
This does not happen when I try to reach the sftp server from another linux system with the same command.
I basically just installed the two packages
openssh-sftp-server 8.9p1-r0, openssh-sftp 8.9p1-r0
as well as the libssh2-1 and libssh4 libraries
Accessing servers via ssh or scp works well, but I unfortunately cannot make the intended server accessible via these.
I think in the background dropbear is being used as the actual ssl client for sftp
What am I missing for the sftp client to work?
2023-03-27 12:49 AM
Hi @SFuch.1
From what I read in this documentation https://openwrt.org/docs/guide-user/base-system/dropbear :
OpenSSH compatibility
Dropbear does not support SFTP by itself [...]
I would recommend to install the package openssh-ssh:
root@stm32mp1:~# apt-cache policy openssh-ssh
openssh-ssh:
Installed: (none)
Candidate: 8.9p1-r0
Version table:
8.9p1-r0 500
500 http://packages.openstlinux.st.com/4.1 kirkstone/main armhf Packages
root@stm32mp1:~# apt-get install openssh-ssh
[...]
root@stm32mp1:~# ssh -V
OpenSSH_8.9p1, OpenSSL 3.0.5 5 Jul 2022
Once this package installed, your command should be fine.
Best regards,
--JM