Try openssh from the ipkg repository.
Has anyonce compiled an sftp-server binary for the WL500g?
Try openssh from the ipkg repository.
Works great, thank you.Originally Posted by Oleg
The only probem is that the dropbear that comes in the firmware tries to run /usr/libexec/sftp-server but /usr is read-only so I had to do some funny "mount -o bind" fiddling in order to actually be able to add the sftp-server where dropbear expects it.
Maybe that could be fixed in a future firmware? ;-)
Thanks Oleg.
monnier, could you please explain this in detailsOriginally Posted by monnier
Thanx in advance
Basically store the read-only /usr somewhere:Originally Posted by ega2002
then mount some read-write directory over /usr:Code:mount -o bind / /opt/flash
and finally populate /opt/usr (now also known as /usr) with symlinks to /opt/flash/usr/* except for /opt/usr/libexec (which didn't exist and now contains a symlink to /opt/libexec/sftp-server) and /opt/usr/local which is a symlink to /tmp/local. The read-only /usr also has a symlink for /usr/tmp to ../tmp which I haven't bothered to recreate because it seems unnecesary.Code:mount -o bind /opt/usr /usr
monnier,
Ok, but I thought it should be more simple. I tried another method, and it works fine for me. I copied dropbear executable to /opt/sbin and patched it to use /opt/libexec instead of /usr/libexec. Then I simply run this copy instead of built-in, and voila - sftp-server works perfectly well!