burusftp user key add
Add a public key to a user. For a step-by-step guide, see Manage Users (CLI).
To enable or require public key authentication after adding the key, use burusftp user update --key-auth.
Synopsis
burusftp user key add -u <username> -f (<path> | -) [options]
burusftp user key add -u <username> -i <key> [options]Options
-u, --username <username>required
Username.
-f, --file <path>
Read key from a file, or from standard input when - is used. Supports SSH2, PKCS#8, authorized_keys, and base-64 encoded keys.
-i, --key <key>
Base-64 encoded public key passed directly as an argument.
-c, --comment <comment>
Comment for the imported key.
Examples
# Add RSA public key from file
burusftp user key add -u elaine -f "C:\rsa.pub"
# Read public key from standard input with a comment
burusftp user key add -u elaine -c "elaine's key" -f -
# Add inline Ed25519 public key
burusftp user key add -u elaine -i "AAAAC3NzaC1lZDI1NTE5AAAAIAo5oLWzlyMr0T4jY/hZyagW04FzHCyRdSwXkeM8/u87"