Using Dropbear for RTOS which is not POSIX complaint?

Matt Johnston matt at ucc.asn.au
Wed May 23 11:06:56 WST 2007


On Mon, May 21, 2007 at 05:10:41PM -0400, Mohan V wrote:
> 
> Hi,
>  We have a proprietary RTOS which is *not* POSIX complaint. We want to port 
> SSH server and SCP client onto our platform. How difficult it would be, to 
> port Dropbear into our platform? We would like to integrate our CLI with 
> the SSH.
> 
>  Any recommendations on using Dropbear for our platform? Appreciate sharing 
> of your experiences.

I know that it has been ported to AMX and VxWorks, there are
probably some others I haven't heard about or can't
remember. I don't think either of those two released any
source. There's a GPL-licensed port of the client to the
PSP by Ludovic Jacomme as well.

Basically porting would require modifying the
read()/write()/select() type code in the *channel and
*session files and altering svr-chansession to talk to your
own CLI with appropriate line buffering. PTY support can be
awkward, but just talking straight to your own CLI is
probably fairly easy.

You'd also have to change the server auth code since that
relies on /etc/passwd and Unix semantics. I'm not sure about
scp.c -- it's a straight copy from OpenSSH (which in turn
is a patched BSD rcp).

Cheers,
Matt


More information about the Dropbear mailing list