--- title: "ssh server host-key <key type> private-key [\"<private key>\"]" slug: "ssh-server-host-key-key-type-private-key-private-key" tags: ["Reference", "CMS 11.x", "EX 11.x", "HX 10.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Customer", "Network Security"] updated: 2026-08-04T17:22:36Z published: 2026-08-04T17:22:36Z canonical: "docs.trellix.com/ssh-server-host-key-key-type-private-key-private-key" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # ssh server host-key <key type> private-key ["<private key>"] Manually enters a private host key of the specified type instead of generating the key using thec`ssh 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 public-key ](/network-and-platform/docs/ssh-server-host-key-type-public-key-public-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