Exporting a host public key

Restrictions and guidelines

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

Procedure

  1. Enter system view.

    system-view

  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 ]