Dropbear on MMUless machines

Matt Johnston matt at ucc.asn.au
Fri Sep 24 12:50:07 WST 2004


On Thu, Sep 23, 2004 at 02:59:34PM +0200, Erich Schubert wrote:
> Hi,
> i'm running dropbear on an MMUless embedded ARM system.
> Since mmuless machines do not support fork(), it would probably be
> necessary to split dropbear into two apps, one accepting the connections
> and the other then handling the individual client sessions.
> 
> Since that looked like a lot of work, i decided to do a shorter
> approach: i modified dropbear to run as a "single-shot" ssh server, to
> be run in inetd mode. (In my case, i used tcpsvd from the ipsvd package)
> 
> This works fine, i can do multiple ssh sessions, and while i'm not
> connected dropbear isn't even loaded into memory.
> 
> Attached is the patch for dropbear 0.41 doing both the inetd-mode
> modifications and replacing calls to fork() by calls to vfork().

Ah, looks useful. I actually merged in my own inetd-mode
code for 0.42, though I didn't get it using two seperate
sockets for read/write - have you found a situation which
requires that? I'll see how non-intrusive it is to merge it
into the main codebase, or will put a patch (probably
against 0.43 since the inetd code is already there) on the
website.

Thanks,
Matt


More information about the Dropbear mailing list