1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-30 11:18:12 +00:00
simplesshd/dropbear/dropbearkey.1

62 lines
1.4 KiB
Groff
Raw Normal View History

2014-12-10 21:56:49 +00:00
.TH dropbearkey 1
.SH NAME
dropbearkey \- create private keys for the use with dropbear(8) or dbclient(1)
.SH SYNOPSIS
.B dropbearkey
\-t
.I type
\-f
.I file
[\-s
.IR bits ]
2019-06-09 20:44:26 +00:00
[\-y]
2014-12-10 21:56:49 +00:00
.SH DESCRIPTION
.B dropbearkey
generates a
2020-12-28 21:40:37 +00:00
\fIRSA\fR, \fIDSS\fR, \fIECDSA\fR, or \fIEd25519\fR
2014-12-10 21:56:49 +00:00
format SSH private key, and saves it to a file for the use with the
Dropbear client or server.
Note that
some SSH implementations
use the term "DSA" rather than "DSS", they mean the same thing.
.SH OPTIONS
.TP
.B \-t \fItype
Type of key to generate.
Must be one of
.I rsa
.I ecdsa
2020-12-28 21:40:37 +00:00
.I ed25519
2014-12-10 21:56:49 +00:00
or
.IR dss .
.TP
.B \-f \fIfile
Write the secret key to the file
2019-06-09 20:44:26 +00:00
\fIfile\fR. For client authentication ~/.ssh/id_dropbear is loaded by default
2014-12-10 21:56:49 +00:00
.TP
.B \-s \fIbits
Set the key size to
.I bits
bits, should be multiple of 8 (optional).
2019-06-09 20:44:26 +00:00
.TP
.B \-y
Just print the publickey and fingerprint for the private key in \fIfile\fR.
2014-12-10 21:56:49 +00:00
.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
2019-06-09 20:44:26 +00:00
generate a host-key:
2014-12-10 21:56:49 +00:00
# dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
2019-06-09 20:44:26 +00:00
extract a public key suitable for authorized_keys from private key:
# dropbearkey -y -f id_rsa | grep "^ssh-rsa " >> authorized_keys
2014-12-10 21:56:49 +00:00
.SH AUTHOR
Matt Johnston (matt@ucc.asn.au).
.br
Gerrit Pape (pape@smarden.org) wrote this manual page.
.SH SEE ALSO
dropbear(8), dbclient(1), dropbearconvert(1)
.P
https://matt.ucc.asn.au/dropbear/dropbear.html