--- title: "ssh server host-key <type> public-key \"<public key>\"" slug: "ssh-server-host-key-type-public-key-public-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-type-public-key-public-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 <type> public-key "<public key>" Manually enters a public host key of the specified type instead of generating the key using the `ssh server host-key generate` command. If you are changing the public key, you must also change the private key using the command [ssh server host-key private-key []](/network-and-platform/docs/ssh-server-host-key-key-type-private-key-private-key). ### Syntax `ssh server host-key <key type> public-key "<public key>"` ### Parameters `key type` The SSHv2 key type: - `rsa1`—SSH-RSA1 key - `rsa2`—SSH-RSA2 key - `dsa2`—SSH-DSA2 key `public key` The public key string, enclosed by double quotation marks. ### Example The following examples configures a public SSH-RSA2 key. ``` hostname (admin) # ssh server host-key rsa2 public-key "ssh-rsa ABCAB3Nza..." ``` ### 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