Some clients, e.g. Cyberduck on the Mac, cannot connect to the SCP server provided by OpenWrt's standard ssh server, dropbear, unless an additional binary is installed in /usr/libexec/sftp-server - this can be done with the snippet below:
# Enable sftp, work around # https://trac.cyberduck.io/ticket/4161 # Needs 44.5K on / if [ ! -e /usr/libexec/sftp-server ] ; then opkg update opkg -d ram install openssh-sftp-server mkdir -p /usr/libexec cp /tmp/usr/lib/sftp-server /usr/libexec/ fi
Now you can use sftp clients such as Cyberduck to connect to the OpenWrt system. Note that no additional startup scripts are required since all of that is handled by dropbear which is most likely already present on your system.
A better solution would be to have a package that contains only /usr/libexec/sftp-server.
doc/howto/sftp.server.txt · Last modified: 2014/01/02 18:15 by probono