SSH public key not present in profile for rootVMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
SSH key are added for the user account in ESXi Host which is either not present in Host Profile or has a different value resulting in Host not being complaint with the attached profile.
To resolve the issue, add the authorized SSH key for the user root in the host profile attached to the Host if this is a requirement.
Else remove the key from ESXi host from authorized_keys files by following steps mentioned here:1. SSH to the ESXi Host2. Backup the file using cp /etc/ssh/keys-root/authorized_keys /etc/ssh/keys-root/authorized_keys.bak3. Clear contents of the file using the command: echo "" /etc/ssh/keys-root/authorized_keys
Note:
/etc/ssh/keys-root/authorized_keys authorized_keys to the non-complaint hosts. authorized_keys are not presented in the compliant host, remove the keys from the non-compliant host