20 lines
626 B
Markdown
20 lines
626 B
Markdown
# 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}}` |