Exporting a host public key

When you export a host public key, follow these restrictions and guidelines:

To export a local host public key:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Export a local host public key.

  • Export an RSA host public key:

    • In non-FIPS mode:public-key local export rsa [ name key-name ] { openssh | ssh1 | ssh2 } [ filename ]

    • In FIPS mode:public-key local export rsa [ name key-name ] { openssh | ssh2 } [ filename ]

  • Export an ECDSA host public key:public-key local export ecdsa [ name key-name ] { openssh | ssh2 } [ filename ]

  • Export a DSA host public key:public-key local export dsa [ name key-name ] { openssh | ssh2 } [ filename ]

The public-key local export ecdsa command is available in Release 1121 and later.