Re: Compression when using dropbear as an ssh/scp client ?

2011-09-07 Thread Matt Johnston
Dropbear client always uses compression if possible, when it
is compiled in. The -C argument is ignored.

Cheers,
Matt

On Mon, Sep 05, 2011 at 03:46:59PM +0200, Guillaume Dargaud wrote:
 Hello all,
 I'm using dropbear compiled from buildroot:
 $ grep DROP .config
 .config:BR2_PACKAGE_DROPBEAR=y
 .config:BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS=y
 .config:# BR2_PACKAGE_DROPBEAR_SMALL is not set
 
 From the machine with dropbear, I seem unable to activate compression:
 # scp -C -p -i /etc/dropbear/dropbear_dss_host_key /root/*.dat user@remote:
 WARNING: Ignoring unknown argument '-C'
 20110905-125726.dat 100%   16KB 16.5KB/s   00:00
 20110905-125745.dat 100%   16KB 16.5KB/s   00:00
 20110905-125803.dat 100%   16KB 16.5KB/s   00:00
 
 But the option is present:
 # scp
 usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 [...] [[user@]host2:]file2
 
 It's actually the same thing with ssh:
 # ssh -C -i /etc/dropbear/dropbear_dss_host_key noy@lpsc-ssh
 WARNING: Ignoring unknown argument '-C'
 
 Except that I don't even see -C as an option if I do ssh --help
 
 
 Compression actually works fine when using dropbear as a server:
 $ ssh -Cv root@embedded
 ...
 debug1: kex: server-client aes128-ctr hmac-md5 z...@openssh.com
 debug1: kex: client-server aes128-ctr hmac-md5 z...@openssh.com
 ...
 debug1: Enabling compression at level 6.
 
 -- 
 Guillaume Dargaud
 http://www.gdargaud.net/


Re: Compression when using dropbear as an ssh/scp client ?

2011-09-07 Thread Guillaume Dargaud
 Dropbear client always uses compression if possible, when it
 is compiled in. The -C argument is ignored.

What's a simple way to check that the compression is indeed used ?
The size displayed is always the uncompressed one and there's no verbose option.

Without resorting to wireshark-fu if possible !!!
-- 
Guillaume Dargaud
http://www.gdargaud.net/