By default root user have ssh access to esx host with all the privilege
We can follow below steps to disable root ssh login.
Ssh to esx host using root account
Change directory to etc/ssh
Using vi editor open sshd_config fileChange “PermitRootLogin”parameter to no. Save & exit from text file
Restart ssh service using below command
“/etc/inid.d/SSH restart”
Now root account doesn’t have rights to ssh to this esx host. But all other users who have administrative rights have ssh access.