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

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.

Leave a Reply

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

WordPress.com Logo

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

Google photo

You are commenting using your Google 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.