Dropbear for 0.3x

3rd Party Package Requesting

Postby braulio » Fri May 14, 2004 9:38 am

Hello everybody !

Would it be possible to compile dropbear 0.41 ?

I have notices of versions running against uclibc, and also embedded on wireless routers (linksys?)

It would be nice to have it running on freesco.

My target is have running it on a floppy install.

Home Page: <a href='http://matt.ucc.asn.au/dropbear/dropbear.html' target='_blank'>http://matt.ucc.asn.au/dropbear/dropbear.html</a>

Latest version: <a href='http://matt.ucc.asn.au/dropbear/releases/dropbear-0.41.tar.gz' target='_blank'>http://matt.ucc.asn.au/dropbear/releases/d...ear-0.41.tar.gz</a>


Thanks in advance and best regards,

Braulio
User avatar
braulio
Newbie
 
Posts: 19
Joined: Mon Apr 14, 2003 8:51 am

Postby dingetje » Wed Jun 02, 2004 6:43 am

I've managed to come up with a binary (I had to borrow some code from the OpenSSH to get it linked), even stripped still 166Kb (!) in size, so floppy only is out of the question.
Sure, you can probably compile against uLibC but I've seen packages for other distro's where the daemon binary is still around 100Kb, so way too big for a floppy only system.

Be warned: there are still some problems to iron out, f.i. I cannot login using dropbear, the password is rejected for some reason :(
GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Postby dingetje » Wed Jun 02, 2004 8:28 am

Ok, managed to get it working on FREESCO, the problem was the shadow password option being disabled (not supported on FREESCO) while this has to be enabled on zipslack where I did the initial tests. Get it? Never mind...

The best that can be done is install the package in an additional ramdisk, but this requires access to a web server (either your ISP or on the local LAN) so the package can be reinstalled after a reboot.

It should also be verified that the binary works with the stock (stripped) libc.so.5 lib and does not require the full blown (>600Kb) libc.so.5 upgrade.

BTW: should I make a package for FREESCO 03x or 027?
GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Postby dingetje » Wed Jun 02, 2004 11:05 am

FYI: After compressing with UPX, the dropbear SSH server binary is now 76149 bytes in size.

The dropbear keygen utility is also required to generate the SSH keys for the host, but this is a one step only process, so this binary isn't required for normal operation.

Remains the question if dropbear works with the stock (stripped version) libc.so.5 library.
GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Postby braulio » Wed Jun 02, 2004 3:45 pm

Dingetje! You are the package master :D

I remember there was a compilation/config option to make a common binary, for dropbear and the keygen, so the resulting binary was smaller than both...

Would it be possible that I test this with a stock 0.3.x ?

And yes, a package for 0.3.x would be very nice ;)

Thankyou!

braulio

PD: Maybe a little offtopic, wich changes did you have to do in the code to be able to compile it?
User avatar
braulio
Newbie
 
Posts: 19
Joined: Mon Apr 14, 2003 8:51 am

Postby dingetje » Wed Jun 02, 2004 7:02 pm

The code was obviously written for a newer linux in mind, so even with the .configure script running succesfully to the end. The code would not compile. I had to make several changes, too many to list here, and even to remember...
After the compile step completed succesfully, it failed to link with two missing functions 'getaddrinfo' and 'getnameinfo'. So I googled around a bit but didn't find a good answer. Then I realized that OpenSSH also uses these calls but I could not remember seeing these missing function errors when I made OpenSSH. Turned out the OpenSSH package contains code called 'fake-getaddrinfo.c' and 'fake-getnameinfo.c'. So I simply copied those two modules in the dropbear directory, made the required changes to the Makefile and let it rip...
GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Postby braulio » Thu Jun 03, 2004 12:14 am

thx for your explanation

good job!

regards

braulio
User avatar
braulio
Newbie
 
Posts: 19
Joined: Mon Apr 14, 2003 8:51 am

Postby braulio » Mon Jun 07, 2004 4:20 am

Hi again, Dingetje :)

Did you have a chance to test the binary?

thx for your work!

regards

braulio
User avatar
braulio
Newbie
 
Posts: 19
Joined: Mon Apr 14, 2003 8:51 am

Postby dingetje » Mon Jun 07, 2004 6:09 am

Yes, but I ran into troubles with a stock 03x system, so I'll have to investigate what is missing to make it work.

later!
GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands


Return to 3rd Party Package Requesting

Who is online

Users browsing this forum: No registered users and 8 guests

cron