ESX-Disable ssh access to root user

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: