--- title: "Obtaining a host key using the CLI" slug: "obtaining-a-host-key-using-the-cli-1" updated: 2026-10-01T09:15:33Z published: 2026-10-01T09:15:33Z canonical: "docs.trellix.com/obtaining-a-host-key-using-the-cli-1" --- > ## 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. # Obtaining a host key using the CLI Use the command in this section to obtain the host key of the Central Management System appliance. This is the key that you will import into the global host-keys database of the managed File Protect appliance. ### Important You must obtain the RSA v2 key. The host-key string may need to be modified in Network Address Translation (NAT) deployments. For details, see [Configuring global host-key authentication in a NAT deployment](/network-and-platform/docs/configuring-network-address-translation-nat). To obtain the host key: 1. Log in to the Central Management System CLI. 2. View the keys: ```plaintext hostname > show ssh server host-keys interface ether1 ``` 3. Locate the RSA v2 host key entry. 4. Copy the key string, including the double quotation marks. 5. Do one of the following: - Paste the key into the File Protect CLI, as described in [Importing a host key into the global host-keys database using the CLI](/network-and-platform/docs/importing-a-host-key-into-the-global-host-keys-database-using-the-cli-1). - Paste the key into a text file and save it for later. ### Example This example displays the Central Management System host keys. The RSA v2 key is highlighted for illustration. ```plaintext CM-08 > show ssh server host-keys interface ether1 ``` ```plaintext SSH server configuration:   SSH server enabled:      yes   .   .   .   Interface listen enabled: yes   Listen Interfaces:     Interface: ether1 Host Key Finger Prints and Key Lengths:    RSA v1 host key: 37:20:5f:af:65:33:e8:62:26:3c:25:d0:1f:2d:8a:54 (2048)    RSA v2 host key: c7:64:12:8a:71:a6:da:14:3c:05:37:aa:7a:2e:2a:8c (2048)    DSA v2 host key: 85:59:a8:a1:d8:3e:df:2e:74:fc:6a:be:be:d2:62:32 (1024) ``` ```plaintext Host Keys: RSA v1 host key: "10.11.121.13 2048 65537 2767892723557105143394492343612763 94200729942394341979526174787907308831935615818924165744283828800766510523178479 02037474895252247975570054315595358600142845914848782710493540937857691486699538 04205200729560274476403668156602030333253822356382587237819555941646603447324517 63747513796533041848893042157553987170029619742182277730552872281173097286794724 22744200184844597327452806661880313000836518022137675657765205670872217927843062 15703217249958957713631587970078908302914798758861955796169110420493384623007632 35665546051494669314340340626018765311569680255688151929860734984461083957535425 72032093143856912019598" ``` ```plaintext RSA v2 host key: "10.11.121.13 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZZJLE/ ftkUddyNW6KdqEQXjS0PjbtzTn3OB51Qg0fdeQHrJgFHM2/4C9WtDkwuX5jd7gdWnSWYwrXDv657thly RPIt4Wxjf0bpOolPKAe6shgYq35NxalYDt7Pa/oym51SN/x9dGaaTFOHvvdAf0Gu5E7nv3YjLjmSgdpS p7auHnYsyJ5O+xlYocXtoBq6jOueyxm8qm76IWL007JIJ7ZLgMI8FjZ5gp48r+Hnjrdio2rhKKUP/6B0 jpHRxsd8yPxMgJpyz2Dwv9ZIJha67f6sgWYdt4yxfBc9yr7yG3iVWVJcLE+83aY24X7DBUXFnG3AeciD pEqAit2dPF586hJ" ``` ```plaintext    DSA v2 host key: "10.11.121.13 ssh-dss AAAAB3NzaC1kc3MAAACBAMY7tSZt46Qrv/hqL 1tazYjXNzkyLTWp54DjfkxzE//+qjE0AUr9hTU3ZmHYChzUVTEKj7syaxd+4Y+8IZ94eRVcnrH/jrqtE aJ64SvoUqGkbKKezUbCVfSrzGgTV/A0dUzLYMLbOEMrTMcXki+DnaUSd80PCWLvq0Mcg0IpXAAAAFQDI tRIv/iH3AAy23h3cnWzp3dpOXQAAAIAS0AONTi0O8A+f1HNOm3PzS02ZQ9ittHxA1ISs7yE6dcbj9JrW Vf1w2lJTEZAJPQz/c9NysGVJusll6Aj1aqQ6EKuhKlPcpY0PyCVKT3TGgY93i648umYZSs9+HzoLY1/a TnnkBGDQ8mFbjhyw3UdeiFjamVVr+4o8QwMbDXAfXAAAAIEAjBMXsp4gK5yvsAgBqcZeZm3vW4zYUpZZ 374A3ANXENWTh2yyQd8Ig1gB0YKDBhSHD6sZpPg88WSDxK3IAdifYGx+FAhowiuWcI+kA0UeiAb9/C+A 653zii1Nc85/fsIwl3GIjmp/xO23b+9YmHY8V5CsT+mmSIYQutCIzUVWbcYvEc=" ```