Exporting a host public key
Restrictions and guidelines
When you export a host public key, follow these restrictions and guidelines:
If you specify a file name in the command, the command exports the key to the specified file.
If you do not specify a file name, the command exports the key to the monitor screen. You must manually save the exported key to a file.
Procedure
Enter system view.
system-view
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 ]