Compression when using dropbear as an ssh/scp client ?

Guillaume Dargaud dargaud at lpsc.in2p3.fr
Mon Sep 19 15:08:02 WST 2011


Hello Rob,
> Does the dropbear binary link against zlib?  (What does ldd say?)

# ldd /usr/sbin/dropbear
        libcrypt.so.0 => /lib/libcrypt.so.0 (0x48016000)
        libutil.so.0 => /lib/libutil.so.0 (0x4803b000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4804d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4806f000)
        libc.so.0 => /lib/libc.so.0 (0x48099000)
        libm.so.0 => /lib/libm.so.0 (0x480f0000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x48000000)

Anyway, after some testing, I find it more efficient and easier to fine-tune it with a:
List=*.dat
tar -vc $List |
nice gzip |
ssh -y -i /etc/dropbear/dropbear_dss_host_key user at remote "cd data && tar -zxf -" &&
rm $List

-- 
Guillaume Dargaud
http://www.gdargaud.net/


More information about the Dropbear mailing list