← 返回命令列表

Linux command

dropbearkey 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

dropbearkey -t ed25519 -f [path/to/key_file]

Example

dropbearkey -t ecdsa -f [path/to/key_file]

Example

dropbearkey -t rsa -s 4096 -f [path/to/key_file]

Example

dropbearkey -y -f [path/to/key_file]

说明

dropbearkey generates SSH host and user keys in Dropbear's native format. Dropbear is a lightweight SSH implementation commonly used on embedded systems, routers, and resource-constrained devices where OpenSSH would be too large. The tool supports modern key types including Ed25519, ECDSA, and RSA with configurable key sizes. Generated keys are stored in Dropbear's own format, which differs from OpenSSH's format. If you need to use keys with OpenSSH or vice versa, use dropbearconvert to convert between formats. Host keys are typically stored in /etc/dropbear/, while user keys can be placed in standard SSH locations.

参数

-t _type_
Key type (rsa, ecdsa, ed25519)
-f _file_
Output key file
-s _bits_
Key size in bits (for RSA)
-y
Print public key and fingerprint from existing key

FAQ

What is the dropbearkey command used for?

dropbearkey generates SSH host and user keys in Dropbear's native format. Dropbear is a lightweight SSH implementation commonly used on embedded systems, routers, and resource-constrained devices where OpenSSH would be too large. The tool supports modern key types including Ed25519, ECDSA, and RSA with configurable key sizes. Generated keys are stored in Dropbear's own format, which differs from OpenSSH's format. If you need to use keys with OpenSSH or vice versa, use dropbearconvert to convert between formats. Host keys are typically stored in /etc/dropbear/, while user keys can be placed in standard SSH locations.

How do I run a basic dropbearkey example?

Run `dropbearkey -t ed25519 -f [path/to/key_file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -t _type_ do in dropbearkey?

Key type (rsa, ecdsa, ed25519)