What's new

sftp server installation process

  • 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!

dragon31337

Occasional Visitor
Hi all.
I have an ac66u running with entware installed.
Now I want to install sftp server and have couple of questions which has no answers around.
1) now I have dropbear installed and listening to some another port, not 22. Should I uninstall/disable it? I believe no, but lets make sure I'm right.
2) Should I install openssh-server before?
3) If openssh-server is required there is no much sense to keep dropbear, right? That is just waste of resources,
4) How to config openssh-sftp-server? Does it share same settings are openssh-server? Where are config files? I've tried to check /etc/ssh/sshd_config location, but it was empty.

Sorry for such a huge number of questions. I've tried to download files via scp but it fails to download large files. And it does not support download restoration.

Thanks in advance!
 
Please, help me.
I've installed openssh-sftp-server 6.2p2-1, added port 22 rules to /jffs/scripts/firewall-start for external connect, but still can't connect to the sftp server. Connection drops on timeout.

some details:
Code:
uname -a
Linux RT-AC66U 2.6.22.19 #2 Sat Aug 24 22:38:42 EDT 2013 mips GNU/Linux

opkg list-installed
findutils - 4.5.11-1
ldconfig - 0.9.32-4
libc - 0.9.32-4
libcurl - 7.29.0-1a
libevent2 - 2.0.21-1
libgcc - 4.6.3-4
libidn - 1.18-1
libminiupnpc - 1.8-1
libncurses - 5.9-1
libopenssl - 1.0.1e-2
libpthread - 0.9.32-4
librt - 0.9.32-4
librtmp - 2.4-20121209-1
libstdcpp - 4.6.3-4
nano - 2.2.6-1b
openssh-sftp-server - 6.2p2-1
terminfo - 5.9-1
transmission-daemon - 2.82-1
transmission-web - 2.82-1
uclibc-opt - 0.9.32-4
zlib - 1.2.8-1
 
Please, help me.
I've installed openssh-sftp-server 6.2p2-1, added port 22 rules to /jffs/scripts/firewall-start for external connect, but still can't connect to the sftp server. Connection drops on timeout.
Hi,

Did you follow a "How to" - like this?
Maybe the hint is to edit the config file (sshd_config)... :eek:
And: Is sftp running at all? :rolleyes:

With kind regards
Joe :cool:
 
sftp is something I am considering adding to the FW BTW once I can find the time.
 
Oh, my gosh, Merlin! I'm would like to be a beta tester. I desperately need this SFTP running. Now I'm back to this question.

Meanwhile I'll try to runs regular sftp server. When I install the package there is no sshd_config file. And nobody answered me on my initial questions, at least these two:
1) Do I need to install openssh-server?
2) Do I need to disable dropbare in order to get sftp server running?

and one new question:

3) Where the config is? I did search for anything which might be a config but no luck.


I was going to try this:
http://wiki.openwrt.org/inbox/replacingdropbearbyopensshserver
But did not fine how to control dropbear on Merlin's FW.

To joegreat:
I've seen plenty of such howto's but none of them works for our Merlin FW. paths are different, configs are missing, etc.
 
I came to the conclusion that I should have openssh-server up and running in order to get sftp server working.

I've installed openssh-server, but can't get it running:
User@RT-AC66U:/# /opt/etc/init.d/S40sshd start
starting sshd...
Could not load host key: /opt/etc/ssh/ssh_host_rsa_key
Could not load host key: /opt/etc/ssh/ssh_host_dsa_key
Could not load host key: /opt/etc/ssh/ssh_host_ecdsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
While I've generated all the keys with

User@RT-AC66U:/# ls /opt/etc/ssh/
ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_ecdsa_key ssh_host_ecdsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub sshd_config
ssh-keygen -t dsa -f /opt/etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -f /opt/etc/ssh/ssh_host_rsa_key
ssh-keygen -t ecdsa -f /opt/etc/ssh/ssh_host_ecdsa_key
and they are all there:
User@RT-AC66U:/# ls /opt/etc/ssh/
ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_ecdsa_key ssh_host_ecdsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub sshd_config
 
Last edited:

Similar 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