Due to some company cybersecurity policies, customers need to disable root ssh to ESXi/vCenter permission.
This article shows how to disable root shell access on ESXi
ESXi 7.0.x
ESXi 8.0.x
vCenter Server 7.0.x
vCenter Server 8.0.x
N/A
Before the operation, make sure there is a super user with the same permissions as the root account.
/etc/init.d/SSH restart
If you want to change back the previous SSH permission, only reset the parameter to "permitrootlogin yes"