dropbearkey - Man Page
create private keys for the use with dropbear(8) or dbclient(1)
Examples (TL;DR)
Generate an SSH key of [t]ype ed25519 and write it to key [f]ile:
dropbearkey -t ed25519 -f path/to/key_fileGenerate an SSH key of [t]ype ecdsa and write it to key [f]ile:
dropbearkey -t ecdsa -f path/to/key_fileGenerate an SSH key of [t]ype RSA with 4096-bit key [s]ize and write it to key [f]ile:
dropbearkey -t rsa -s 4096 -f path/to/key_filePrint the private key fingerprint and public key in key [f]ile:
dropbearkey -y -f path/to/key_file
Synopsis
Description
dropbearkey generates a RSA, DSS, ECDSA, or Ed25519 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.
Options
- -t type
Type of key to generate. Must be one of
rsa,ecdsa,ed25519, ordss.- -f file
Write the secret key to the file file. For client authentication
~/.ssh/id_dropbearis loaded by default- -s bits
Set the key size to bits bits, should be multiple of 8 (optional).
- -y
Just print the publickey and fingerprint for the private key in file.
Notes
The program dropbearconvert(1) can be used to convert between Dropbear and OpenSSH key formats.
Dropbear does not support encrypted keys.
Examples
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
See Also
Authors
Matt Johnston <matt@ucc.asn.au>.
Gerrit Pape <pape@smarden.org> wrote this manual page.
Referenced By
dbclient(1), dropbear(8), dropbearconvert(1).