Scp: ash: /usr/libexec/sftp-server: not found

scp openwrt-24.10.1-77dc5dac715a-ramips-mt7621-zyxel_wsm20-squashfs-sysupgrade.bin root@192.168.178.15:/tmp/
ash: /usr/libexec/sftp-server: not found
scp: Connection closed

Never used scp with OpenWrt 23.05.3, but earlier this was never a problem, using Ubuntu.

Why is sftp mentioned?

The vanilla OpenWrt out of the box has a small Dropbear SSH server. But it doesn't support the SFTP and you need to install openssh-sftp-server package.

1 Like

Force SCP transfer instead of SFTP, no need to install anything.

2 Likes

Nice. "-O" option on scp. @linuxuser

scp -O openwrt-24.10.1-77dc5dac715a-ramips-mt7621-zyxel_wsm20-squashfs-sysupgrade.bin root@192.168.178.15:/tmp/
2 Likes

Please use search.

1 Like

What do you mean by "force"?

So it looks like it makes sense to add openssh-sftp-server package to my list of packages which should be installed.

Earlier I had busybox installed as mentioned in WSM20 24.10.1 update with own image, could that be the difference? With the other thread there was no packages recommendation.

I am interested in an advice whcih packages make sense to install, when a lot space is avaiable.

None ? It's solvable anyway, as you can see.

2 Likes

My PC has:

-side library
ii  openssh-client                                 1:9.6p1-3ubuntu13.8                        amd64        secure shell (SSH) client, for secure access to remote machines
ii  openssh-server                                 1:9.6p1-3ubuntu13.8                        amd64        secure shell (SSH) server, for secure access from remote machines
ii  openssh-sftp-server                            1:9.6p1-3ubuntu13.8                        amd64        secure shell (SSH) sftp server module, for SFTP access from remote machines

I meant the other methioned thread.

I used the webbrowser to upgrade, so there are solutions of course. Thanks for explaining, I didn't know this. There is no problem to connect via ssh and keys.

opkg install openssh-sftp-server or apk add openssh-sftp-server

Or as advised, use scp -O <file> root@192.168.1.1:/...

2 Likes

I want to include it in the image, a few minutes ago online compilation didn't work with arp, but it worked 15min before. I will try later.

I have a lot devices which need this package.

You meant scp? ssh works without any option here.

In the meantime I compiled for the WSM20 without any errors and scp works without any option.

base-files ca-bundle dnsmasq dropbear firewall4 fstools kmod-crypto-hw-eip93 kmod-gpio-button-hotplug kmod-leds-gpio kmod-nft-offload libc libgcc libustream-mbedtls logd mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd-ujail uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic-mbedtls kmod-mt7915-firmware luci arp-scan arp-scan-database busybox iperf iperf3 iputils-arping nmap openssh-sftp-server static-neighbor-reports

root@WSM20-K0:~# ubus call system board
{
	"kernel": "6.6.86",
	"hostname": "WSM20-K0",
	"system": "MediaTek MT7621 ver:1 eco:3",
	"model": "Zyxel WSM20",
	"board_name": "zyxel,wsm20",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "24.10.1",
		"revision": "r28597-0425664679",
		"target": "ramips/mt7621",
		"description": "OpenWrt 24.10.1 r28597-0425664679",
		"builddate": "1744562312"
	}
}

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.