dropbear 2016.73
[tomato.git] / release / src / router / dropbear / dropbearkey.1
blob9bc4ed91c917e01857f3b0adcb9d098156bc06e0
1 .TH dropbearkey 1
2 .SH NAME
3 dropbearkey \- create private keys for the use with dropbear(8) or dbclient(1)
4 .SH SYNOPSIS
5 .B dropbearkey
6 \-t
7 .I type
8 \-f
9 .I file
10 [\-s
11 .IR bits ]
12 [\-y]
13 .SH DESCRIPTION
14 .B dropbearkey
15 generates a
16 \fIRSA\fR, \fIDSS\fR, or \fIECDSA\fR
17 format SSH private key, and saves it to a file for the use with the
18 Dropbear client or server.
19 Note that 
20 some SSH implementations
21 use the term "DSA" rather than "DSS", they mean the same thing.
22 .SH OPTIONS
23 .TP
24 .B \-t \fItype
25 Type of key to generate.
26 Must be one of
27 .I rsa
28 .I ecdsa
30 .IR dss .
31 .TP
32 .B \-f \fIfile
33 Write the secret key to the file
34 \fIfile\fR. For client authentication ~/.ssh/id_dropbear is loaded by default
35 .TP
36 .B \-s \fIbits
37 Set the key size to
38 .I bits
39 bits, should be multiple of 8 (optional). 
40 .TP
41 .B \-y
42 Just print the publickey and fingerprint for the private key in \fIfile\fR.
43 .SH NOTES
44 The program dropbearconvert(1) can be used to convert between Dropbear and OpenSSH key formats.
46 Dropbear does not support encrypted keys. 
47 .SH EXAMPLE
48 generate a host-key:
49  # dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
51 extract a public key suitable for authorized_keys from private key:
52  # dropbearkey -y -f id_rsa | grep "^ssh-rsa " >> authorized_keys
53 .SH AUTHOR
54 Matt Johnston (matt@ucc.asn.au).
55 .br
56 Gerrit Pape (pape@smarden.org) wrote this manual page.
57 .SH SEE ALSO
58 dropbear(8), dbclient(1), dropbearconvert(1)
60 https://matt.ucc.asn.au/dropbear/dropbear.html