Showing results for 
Search instead for 
Did you mean: 

Using sftp client on STM32MP1 Linux

Associate III

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
/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 '' is not in the trusted hosts file.
(ssh-ed25519 fingerprint sha1!! .........)
Do you want to continue connecting? (y/n) y's password: 
Connected to

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?

Jean-Marc B
ST Employee

Hi @SFuch.1​ 

From what I read in this documentation :

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
  Installed: (none)
  Candidate: 8.9p1-r0
  Version table:
     8.9p1-r0 500
        500 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,