From b2d0ab3fc55db7fd7a188ee670bc46f236facd4c Mon Sep 17 00:00:00 2001 From: Johan Degn <54548365+johandegn@users.noreply.github.com> Date: Mon, 20 Mar 2023 06:09:16 +0100 Subject: [PATCH] dropbearkey: add page (#9945) * dropbearkey: add page * Apply suggestions from code review Co-authored-by: K.B.Dharun Krishna --------- Co-authored-by: K.B.Dharun Krishna --- pages/linux/dropbearkey.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/dropbearkey.md diff --git a/pages/linux/dropbearkey.md b/pages/linux/dropbearkey.md new file mode 100644 index 000000000..5992d2492 --- /dev/null +++ b/pages/linux/dropbearkey.md @@ -0,0 +1,20 @@ +# dropbearkey + +> Generate SSH keys in Dropbear format. +> More information: . + +- Generate an SSH key of [t]ype ed25519 and write it to key [f]ile: + +`dropbearkey -t {{ed25519}} -f {{path/to/key_file}}` + +- Generate an SSH key of [t]ype ecdsa and write it to key [f]ile: + +`dropbearkey -t {{ecdsa}} -f {{path/to/key_file}}` + +- Generate 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_file}}` + +- Print the private key fingerprint and public key in key [f]ile: + +`dropbearkey -y -f {{path/to/key_file}}`