Files
tldr/pages.zh/linux/dropbearkey.md

20 lines
626 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# dropbearkey
> 生成 Dropbear 格式的 SSH 密钥。
> 更多信息:<https://manned.org/dropbearkey.1>。
- 生成一种 [t]ype 为 ed25519 的 SSH 密钥并写入密钥 [f]ile
`dropbearkey -t {{ed25519}} -f {{path/to/key_file}}`
- 生成一种 [t]ype 为 ecdsa 的 SSH 密钥并写入密钥 [f]ile
`dropbearkey -t {{ecdsa}} -f {{path/to/key_file}}`
- 生成一种 [t]ype 为 RSA 的 SSH 密钥,密钥 [s]ize 为 4096 位,并写入密钥 [f]ile
`dropbearkey -t {{rsa}} -s {{4096}} -f {{path/to/key_file}}`
- 打印密钥 [f]ile 中的私钥指纹和公钥:
`dropbearkey -y -f {{path/to/key_file}}`