comparison dropbearkey.1 @ 1162:cdea5dbb1755

Mention -y flag
author Guilhem Moulin <guilhem@fripost.org>
date Wed, 28 Oct 2015 21:44:16 +0800
parents 295a08e9d07e
children 80cacacfec23
comparison
equal deleted inserted replaced
1161:b8f362078209 1162:cdea5dbb1755
7 .I type 7 .I type
8 \-f 8 \-f
9 .I file 9 .I file
10 [\-s 10 [\-s
11 .IR bits ] 11 .IR bits ]
12 [\-y]
12 .SH DESCRIPTION 13 .SH DESCRIPTION
13 .B dropbearkey 14 .B dropbearkey
14 generates a 15 generates a
15 .I RSA 16 .I RSA
16 .I DSS, 17 .I DSS,
37 .TP 38 .TP
38 .B \-s \fIbits 39 .B \-s \fIbits
39 Set the key size to 40 Set the key size to
40 .I bits 41 .I bits
41 bits, should be multiple of 8 (optional). 42 bits, should be multiple of 8 (optional).
43 .TP
44 .B \-y
45 Just print the publickey and fingerprint for the private key in \fIfile\fR.
42 .SH NOTES 46 .SH NOTES
43 The program dropbearconvert(1) can be used to convert between Dropbear and OpenSSH key formats. 47 The program dropbearconvert(1) can be used to convert between Dropbear and OpenSSH key formats.
44 .P 48 .P
45 Dropbear does not support encrypted keys. 49 Dropbear does not support encrypted keys.
46 .SH EXAMPLE 50 .SH EXAMPLE
51 generate a host-key:
47 # dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key 52 # dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
53
54 extract a public key suitable for authorized_keys from private key:
55 # dropbearkey -y -f id_rsa | grep "^ssh-rsa " >> authorized_keys
48 .SH AUTHOR 56 .SH AUTHOR
49 Matt Johnston ([email protected]). 57 Matt Johnston ([email protected]).
50 .br 58 .br
51 Gerrit Pape ([email protected]) wrote this manual page. 59 Gerrit Pape ([email protected]) wrote this manual page.
52 .SH SEE ALSO 60 .SH SEE ALSO