Skip to main content
Version: 7.26

export-host-key


ip/ssh/export-host-key​

Type: Command

Export public and private RSA/Ed25519 keys to files.

info

Host keys are exported in PKCS#8 format.

Exporting the SSH host key requires "sensitive" user policy.

ArgumentTypeDescription
key-file-prefixstringPrefix for the generated files: for example my produces my_rsa.pem (private key) and my_rsa_pub.pem (public key) for an RSA host key, or my_ed25519.pem and my_ed25519_pub.pem for an Ed25519 one. Both files are in PKCS#8 PEM format.
passphrasestringPrivate key passphrase.