Dropbear 0.50 scp problem. Most probably related to uclibc

Rob Landley rob at landley.net
Wed Feb 6 06:49:07 WST 2008


On Tuesday 05 February 2008 10:13:13 Jacques Verryn wrote:
> The crux of the problem is if I scp a file from my desktop linux pc to the
> gumstix, the resulting file on the gumstix has zero file length.
> The common denominator in the above posts and in my case, is uclibc.
> I upgraded from dropbear 0.48.1 to 0.50 due the the scp hang error that was
> fixed be extensive reworking of the common-channel.c code.
> I'm working on a production level project and can unfortunately not trade
> scp functionality versus the occasional session hang.
>
> Any ideas???

Run "./dropbear -F -E" under strace, and then do your scp to it with stderr 
captured to a log file.  (Via serial console if necessary.)

At a guess, some call to libc is returning an error that aborts the write.  
Figure out _where_ the write stops, and you're halfway to figuring out why.

Rob
-- 
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.



More information about the Dropbear mailing list