What's new

Adding sshfs support to dropbear?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

zerophase

Occasional Visitor
I'm trying to add sshfs support to dropbear, by compiling openssh-sftp-server into it. I'm following this guide, but it seems like the environment is a bit different for Merlin. I get to this point with the perl compiler.
perl -pi -e 's/\/usr\/libexec\/sftp-server/\/opt\/libexec\/sftp-server/g' dropbear[\quote]

But it either doesn't add the functionality since usr/libexec/sftp-server doesn't exist on the box, or I'm still using the version of dropbear that comes with the router. (When I check the ssh process it shows a version from a year ago)

Anyone able to help out?
 
Simply compile it and copy it to the right path.
 
Simply compile it and copy it to the right path.

The compile commands that tutorial gives aren't correct for Entware. There isn't a /usr/libexec or sftp-server reference on the machine outside of /opt/libexec. So, I think I need to run different compilation commands. (I'm not all that familiar with perl)

How would I go about updating the machine to use a more recent version of dropbear? I installed it from opkg, but the system still runs the older dropbear.
 
I thought you were refeering to ASUS FW not Entware. :)

ASUSWRT:

[22:22:47] [R] Host key algorithm ecdsa-sha2-nistp521, size 512 bits.
[22:22:47] [R] Fingerprint (MD5): 06:ed:d5:e1:fe:ec:9f:b7:1f:20:43:fd:6f:63:80:00
[22:22:47] [R] Key exchange: diffie-hellman-group1-sha1. Session encryption: aes256-ctr, MAC: hmac-sha1, compression: none.
[22:22:47] [R] Auth Type: Password
[22:22:47] [R] Authentication succeeded
[22:22:47] [R] SSH Connection open
[22:22:47] [R] Connection established with dropbear_2015.68 (SFTP v3)
[22:22:47] [R] SFTP Connection Ready
[22:22:47] [R] Retrieving directory listing...
[22:22:47] (debug) [cache :: add :: new] /tmp/home/root/
[22:22:47] [R] List Complete: 268 bytes in 0,02 seconds (0,3 KB/s)
 
If you use WinSCP you can login to SSH Servers via SCP protocol not SFTP, you need sftp-server from OpenSSH to make it work together with Dropbear SSH server to work with SFTP protocol.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top