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

clip_image001

Using vi editor open sshd_config fileChange “PermitRootLogin”parameter to no. Save & exit from text file

clip_image002

Restart ssh service using below command

“/etc/inid.d/SSH restart”

clip_image003

Now root account doesn’t have rights to ssh to this esx host. But all other users who have administrative rights have ssh access.

Advertisements