Comments (9)
Well I have an integrated small scp integrated in dropbear which does the -f -t -p options and integrates in svr-chansession.c
it is only 7,5 kb source, if there is an interest in that I will post that.
That way you don't have to rely on an external scp binary or sftp binary.
But it is very basic...
from dropbear.
It looks like OpenSSH's sftp-server would require at least a dozen .c files to build. It seems relatively separate from other parts of OpenSSH, though would still need various configure tests etc. Perhaps it could be added in a subdirectory - I'm not sure if I'll get to it myself but I wouldn't object if someone wants to add it. Of course we might then need to add sftp client too if OpenSSH removes scp as a server.
from dropbear.
And not a import but an easy option in the makefile to auto integrate a separate automatic openssh build?
from dropbear.
I have just learned that modern releases of openssh have deprecated the scp protocol. When using dropbear as server and an openssh client, legacy scp
can be reenabled using the -O
flag. But, as the article states the legacy protocol may be completely disabled at some point in the future.
So folks using dropbear as SSH server will need a solution to support sftp for secure file transfer in the future.
from dropbear.
Not sure if it makes sense to bundle those, since Dropbear and the OpenSSH SFTP server are two entirely dedicated standalone projects which can be plug&play combined trivially by end users? If I'm not mistaken, the only thing that needs to exist on Linux distros is /usr/lib/sftp-server
, which is then invoked by clients automatically server-side. And one might want to use alternatives like the Green End SFTP Server. Having separate executables and the ability to e.g. update each separately also is a security aspect.
from dropbear.
Not sure if it makes sense to bundle those, since Dropbear and the OpenSSH SFTP server are two entirely dedicated standalone projects which can be plug&play combined trivially by end users? If I'm not mistaken, the only thing that needs to exist on Linux distros is
/usr/lib/sftp-server
, which is then invoked by clients automatically server-side. And one might want to use alternatives like the Green End SFTP Server. Having separate executables and the ability to e.g. update each separately also is a security aspect.
I tried to compile Openssh sftp-server, but it cannot be called by Dropbear subsystem. Is there any relevant information about transplanting sftp-server?
from dropbear.
As said, it works here OOTB with any SFTP server binary located at /usr/lib/sftp-server
or /usr/lib/openssh/sftp-server
, or anywhere else if the SFTP client allows to define the path. Assure that the binary is executable. Otherwise, some more details, especially what exactly you did, error messages etc would be helpful. But at best in a dedicated issue, to not mess with this feature request.
from dropbear.
Not sure if it makes sense to bundle those, since Dropbear and the OpenSSH SFTP server are two entirely dedicated standalone projects which can be plug&play combined trivially by end users? If I'm not mistaken, the only thing that needs to exist on Linux distros is
/usr/lib/sftp-server
, which is then invoked by clients automatically server-side. And one might want to use alternatives like the Green End SFTP Server. Having separate executables and the ability to e.g. update each separately also is a security aspect.I tried to compile Openssh sftp-server, but it cannot be called by Dropbear subsystem. Is there any relevant information about transplanting sftp-server?
I was able to simple compile sftp-server from the project openssh-portable with
./configure --without-openssl --host arm-linux --without-zlib --with-ldflags=-static && make sftp-server
just change to host to your need. And move the binary next to the dropbear or somewhere in the PATH.
It should work. I ended up with the dropbearmulti arm 32bit binary 500kb and the sftp-server on itself 600+ kb . It's works like a charm
from dropbear.
i managed to use the openssh sftp server in dd-wrt with dropbear and its just 22 kb on mips platform
from dropbear.
Related Issues (20)
- [feature, cosmetic] dropbearkey Ignore unsupported command line options
- password length limit HOT 7
- Extracting public key from OpenSSH certificate HOT 8
- dropbear for lwip HOT 1
- key-based authentication HOT 1
- Dropbear - Segmentation fault HOT 3
- Not showing connected user process IDs HOT 1
- Installing an IP address filter ... ??? HOT 2
- There is no command to limit the simultaneous connection of users HOT 2
- Log improvement: name the key
- Bad `authorized_keys` is not reported in non-debug mode HOT 5
- dropbear 22.83 patch error in lede/optnwrt HOT 1
- Minor clarification for DEBUG_TRACE HOT 1
- dbclient can't connect to embedded dropbear server HOT 4
- sshkey file layout HOT 1
- dropbear for android error ` fstatat64(AT_FDCWD, "//.ssh` HOT 1
- Can I Replace LibTomCrypt with OpenSSL? HOT 3
- Ability to configure the `authorized_keys` file HOT 2
- Error if I use scp from same network with python paramiko HOT 2
- cannot login just with private key HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropbear.