burusftp keygen

Generates SSH private keys and saves them to a file in PKCS #8 format.

For a step-by-step guide, see Generate SSH Server Keys (CLI).

Synopsis

burusftp keygen --all [<path>]

burusftp keygen [options] <keyfile>

Options

--all

Generate the default set of keys to the specified path. If no path is given, keys are saved to the keys directory inside the configuration directory.

-t, --type (rsa | dsa | ed25519 | ecdsa-p256 | ecdsa-p384 | ecdsa-p521 | mldsa44 | mldsa65 | mldsa87 | mldsa44-ed25519 | mldsa87-p384)

Key algorithm.

Default: rsa.
-b, --bits <bits>

Key size in bits. Applies to rsa (default: 4096) and dsa (default: 1024) key types.

Examples

# Generate default key set to the configuration directory
burusftp keygen --all

# Generate default key set to a custom path
burusftp keygen --all "D:\keys"

# Generate 4096-bit RSA key
burusftp keygen rsa.key

# Generate 512-bit DSA key
burusftp keygen -t dsa -b 512 dsa.key

# Generate ECDSA key with NIST P-521 curve
burusftp keygen -t ecdsa-p521 ecdsa.key

Changelog

Since version 2.22.0.
  • Added the ecdsa-p256, ecdsa-p384, ecdsa-p521, mldsa44, mldsa65, mldsa87, mldsa44-ed25519 and mldsa87-p384 key types.
  • Keys generated with --all are no longer saved in OpenSSH format, and other keys are no longer saved in PuTTY .ppk format.
  • Existing files are no longer overwritten.
  • -t ecdsa --curve nistp256 and similar combinations have been replaced by -t ecdsa-p256 etc.

See also

burusftp init

On this page