--- title: "Enabling strict and global host-key checking using the CLI" slug: "enabling-strict-and-global-host-key-checking-using-the-cli-6" tags: ["Product Usage", "CMS 11.x", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Customer", "Network Security"] updated: 2026-09-07T20:58:12Z published: 2026-09-07T20:58:12Z canonical: "docs.trellix.com/enabling-strict-and-global-host-key-checking-using-the-cli-6" --- > ## 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. # Enabling strict and global host-key checking using the CLI Use the commands in this section to enable strict host-key checking, global host-key checking, or both. - With **strict host-key checking**, the connection will be allowed only if the local host-keys database for the remote user already has an entry that matches the key the Central Management System appliance sends. - With **global host-key checking**, the connection will be allowed only if the global Malware Analysis host-keys database already has an entry that matches the key the Central Management System appliance sends. > [!WARNING] > Caution > > When you enable global host-key authentication, any established connections will be broken until you explicitly add the host key to the global host-keys database. See [Importing a global host key using the CLI](/network-and-platform/docs/importing-a-host-key-into-the-global-host-keys-database-using-the-cli-6) for instructions. > [!NOTE] > Note > > See the `ssh` and `cmc` commands in the *CLI Command Reference* for advanced authentication options. **To enable strict host-key checking:** 1. Log in to the Malware Analysis CLI. 2. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 3. Enable strict host-key checking: ``` hostname (config) # cmc auth ssh host-key strict ``` 4. Verify your changes: ``` hostname (config) # show cmc auth ssh ``` 5. Save your changes: ``` hostname (config) # write memory ``` **To enable global host-key checking:** 1. Log in to the Malware Analysis CLI. 2. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 3. Enable global host-key checking: ``` hostname (config) # cmc auth ssh host-key global-only ``` 4. Verify your changes: ``` hostname (config) # show cmc auth ssh ``` 5. Save your changes: ``` hostname (config) # write memory ``` **To disable strict or global host-key authentication:** 1. Log in to the CLI. 2. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 3. Perform the following steps as needed. - To disable strict host-key checking: ``` hostname (config) # no cmc auth ssh host-key strict ``` - To disable global host-key checking: ``` hostname (config) # no cmc auth ssh host-key global ``` 4. Verify your changes: ``` hostname (config) # show cmc auth ssh ``` 5. Save your changes: ``` hostname (config) # write memory ``` ### Example This example enforces both strict and global host-key checking on a managed Malware Analysis appliance. ``` hostname (config) # cmc auth ssh host-key strict hostname (config) # cmc auth ssh host-key global-only hostname (config) # show cmc auth ssh CMC SSH configuration:   Strict host key checking enabled:  yes   Global only known hosts enabled:   yes   Minimum protocol version:          2   Cipher list:                       compatible   Minimum key length:                1024 bits ```