--- title: "Enabling strict and global host-key checking using the CLI" slug: "enabling-strict-and-global-host-key-checking-using-the-cli-3" tags: ["Central Management System", "Install and Get Started"] updated: 2026-09-30T15:30:59Z published: 2026-09-30T15:30:59Z canonical: "docs.trellix.com/enabling-strict-and-global-host-key-checking-using-the-cli-3" --- > ## 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 node's remote user already has an entry that matches the key the other node sends. - With **global host-key checking**, the connection will be allowed only if the node's global host-keys database already has an entry that matches the key the other node sends. ### 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 global host keys using the CLI](/network-and-platform/docs/importing-a-host-key-into-the-global-host-keys-database-using-the-cli-3) for instructions. To enable strict host-key checking: 1. Log in to the CLI of one node. 2. Enable the CLI configuration mode: ```plaintext node-hostname > enable node-hostname # configure terminal ``` 3. Stop the cluster engine: ```plaintext node-hostname (config) # ha engine stop ``` 4. Enable strict host-key checking: ```plaintext node-hostname (config) # cmc auth ssh host-key strict ``` 5. Verify your changes: ```plaintext node-hostname (config) # show cmc auth ssh ``` 6. Save your changes: ```plaintext node-hostname (config) # write memory ``` 7. Reboot the node: ```plaintext node-hostname (config) # reload ``` 8. Repeat these steps on the other node. To enable global host-key authentication: 1. Log in to the CLI of one node. 2. Enable the CLI configuration mode: ```plaintext node-hostname > enable node-hostname # configure terminal ``` 3. Stop the cluster engine: ```plaintext node-hostname (config) # ha engine stop ``` 4. Enable global host-key checking: ```plaintext node-hostname (config) # cmc auth ssh host-key global-only ``` 5. Verify your changes: ```plaintext node-hostname (config) # show cmc auth ssh ``` 6. Save your changes: ```plaintext node-hostname (config) # write memory ``` 7. Reboot the node: ```plaintext node-hostname (config) # reload ``` 8. Repeat these steps on the other node. To disable strict or global host-key authentication: 1. Log in to the CLI of one node. 2. Enable the CLI configuration mode: ```plaintext node-hostname > enable node-hostname # configure terminal ``` 3. Stop the cluster engine: ```plaintext node-hostname (config) # ha engine stop ``` 4. Perform the following steps as needed: - To disable strict host-key checking: ```plaintext node-hostname (config) # no cmc auth ssh host-key strict ``` - To disable global host-key checking: ```plaintext node-hostname (config) # no cmc auth ssh host-key global ``` 5. Verify your changes: ```plaintext node-hostname (config) # show cmc auth ssh ``` 6. Save your changes: ```plaintext node-hostname (config) # write memory ``` 7. Reboot the node: ```plaintext node-hostname (config) # reload ``` 8. Repeat the preceding steps from the CLI of the other node. ### Example This example enables strict and global host-key authentication on node1. ```plaintext node1 (config) # ha engine stop node1 (config) # cmc auth ssh host-key strict node1 (config) # cmc auth ssh host-key global-only node1 (config) # show cmc auth ssh CMC SSH configuration:   Strict host key checking enabled:  yes   Global only known hosts enabled:   yes   ... node1 (config) # write memory node1 (config) # reload ``` :