Results 1 to 6 of 6

Thread: sftp-server for wl500g?

  1. #1

    sftp-server for wl500g?

    Has anyonce compiled an sftp-server binary for the WL500g?

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Try openssh from the ipkg repository.

  3. #3
    Quote Originally Posted by Oleg
    Try openssh from the ipkg repository.
    Works great, thank you.
    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.

  4. #4
    Join Date
    Mar 2006
    Location
    Moscow, Russia
    Posts
    108
    Quote Originally Posted by monnier
    Works great, thank you.
    ... 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.
    monnier, could you please explain this in details
    Thanx in advance

  5. #5
    Quote Originally Posted by ega2002
    monnier, could you please explain this in details
    Thanx in advance
    Basically store the read-only /usr somewhere:

    Code:
    mount -o bind / /opt/flash
    then mount some read-write directory over /usr:

    Code:
    mount -o bind /opt/usr /usr
    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.

  6. #6
    Join Date
    Mar 2006
    Location
    Moscow, Russia
    Posts
    108
    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!

Similar Threads

  1. FTP server met WL520G
    By mikesierra in forum Dutch Discussion - Nederlands
    Replies: 2
    Last Post: 08-04-2006, 21:47
  2. twonky media server, network drive with oleg firmware
    By black_bottom in forum WL-HDD Q&A
    Replies: 3
    Last Post: 22-03-2006, 07:15
  3. Secure Ftp server
    By glente in forum WL-500g Q&A
    Replies: 1
    Last Post: 04-02-2006, 13:35
  4. FTP server op wl500g-dlx niet bereikbaar vanaf internet
    By Sawilla in forum Dutch Discussion - Nederlands
    Replies: 16
    Last Post: 19-12-2005, 09:37
  5. lost IP from server
    By sabo in forum Dutch Discussion - Nederlands
    Replies: 1
    Last Post: 17-12-2005, 23:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •