Hi,

We've also got the two attached patches in the Debian package.  Please
consider applying them upstream.  (Actually both dropbear(8) and
dropbearconvert(1) mention the ‘-y’ flag for dropbearkey, but it's
currently undocumented in the upstream manpage.)

Cheers,
-- 
Guilhem.
From 5684f6a7c10660d5350b0f94a33dda93d615ffd8 Mon Sep 17 00:00:00 2001
From: Gerrit Pape <[email protected]>
Date: Wed, 19 Nov 2008 20:00:53 +0000
Subject: [PATCH] dbclient.1: dbclient uses compression if compiled with zlib
 support

On Fri, Sep 26, 2008 at 03:40:57PM +0200, Luca Capello wrote:
> On Tue, 23 Sep 2008 16:24:25 +0200, Matt Johnston wrote:
> > On Wed, Aug 20, 2008 at 07:43:58PM +0200, Luca Capello wrote:
> >> Could you please clarify if dbclient really support compression or not?
> >> If yes, could you please explain in the manpage how to enable it?
> >
> > As long as Dropbear was compiled with zlib support (which I
> > assume is the case for Debian)
>
> It seems so, at least the source build-depends on libz-dev and the
> binary depends on zlib1g.
>
> > dbclient will always use compression if the server supports it. There
> > isn't any option to disable it at the moment.
>
> Is there a way to test that compression is used?  I'm sorry, but I'm
> really not an expert about these stuff.
>
> Could the following patch against version 0.51 be applied to the
> dbclient manpage?
---
 dbclient.1 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dbclient.1 b/dbclient.1
index 4502b23..7541517 100644
--- a/dbclient.1
+++ b/dbclient.1
@@ -20,6 +20,9 @@ dbclient \- lightweight SSH client
 .SH DESCRIPTION
 .B dbclient
 is a small SSH client 
+.P
+If compiled with zlib support and if the server supports it, dbclient will
+always use compression.
 .SH OPTIONS
 .TP
 .B \-p \fIport
-- 
2.0.1

From ee1b73673648c54e35828ee2bbae991f9b07cd57 Mon Sep 17 00:00:00 2001
From: Gerrit Pape <[email protected]>
Date: Wed, 19 Nov 2008 20:57:36 +0000
Subject: [PATCH] dropbearkey.8: mention -y option, add example

Patch from [email protected] through
 http://bugs.debian.org/465903
---
 dropbearkey.1 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dropbearkey.1 b/dropbearkey.1
index 207a6fe..2419f26 100644
--- a/dropbearkey.1
+++ b/dropbearkey.1
@@ -9,6 +9,7 @@ dropbearkey \- create private keys for the use with dropbear(8) or dbclient(1)
 .I file
 [\-s
 .IR bits ]
+[\-y]
 .SH DESCRIPTION
 .B dropbearkey
 generates a
@@ -39,12 +40,19 @@ Write the secret key to the file
 Set the key size to
 .I bits
 bits, should be multiple of 8 (optional). 
+.TP
+.B \-y
+Just print the publickey and fingerprint for the private key in \fIfile\fR.
 .SH NOTES
 The program dropbearconvert(1) can be used to convert between Dropbear and OpenSSH key formats.
 .P
 Dropbear does not support encrypted keys. 
 .SH EXAMPLE
+generate a host-key:
  # dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
+
+extract a public key suitable for authorized_keys from private key:
+ # dropbearkey -y -f id_rsa | grep "^ssh-rsa " >> authorized_keys
 .SH AUTHOR
 Matt Johnston ([email protected]).
 .br
-- 
2.0.1

Attachment: signature.asc
Description: PGP signature

Reply via email to