ssh server host-key <key type> private-key ["<private key>"]

Prev Next

Manually enters a private host key of the specified type instead of generating the key using thecssh server host-key generate command.

Using this command also allows you to view the private key string in the appliance configuration.

If you are changing the private key, you must also change the public key using the command ssh server host-key <type> public-key <key>.

Syntax

ssh server host-key <key type> private-key ["<private key>"]

Parameters

key type

The SSHv2 key type:

  • rsa1—SSH-RSA1 key

  • rsa2—SSH-RSA2 key

  • dsa2—SSH-DSA2 key

private key

The private key string, enclosed by double quotation marks. If this parameter is omitted, the user will be prompted to enter the private key string and then enter it again to confirm it. For security, the characters are masked with asterisks as they are entered.

Example

The following example configures a private SSH-RSA2 key.

hostname (admin) # ssh server host-key rsa2 private-key
Key: ******************
Confirm: ******************

User role

Admin

Supported appliances

This command is supported on the following appliances running the specified releases or later:

  • Malware Analysis: Release 7.4.0

  • Central Management System: Release 7.5.0

  • Email Security — Server: Release 7.1.0

  • File Protect: Release 7.5.0

  • Endpoint Security (HX): Release 2.5.0

  • Network Security: Release 7.5.0

  • Intelligent Virtual Execution - Server: Release 7.9.0