How to enable the root login in the ESX server which is OFF by default?

How to enable the root login in the ESX server which is OFF by default?

Edit the configuration file for SSH with the command:

nano /etc/ssh/sshd_config

Find the line that starts with PermitRootLogin and change the no to yes. You can find this line about 2 pages down from the top.

Save the file by first pressing Ctrl-O and then Enter.

Exit with Ctrl-X.

Restart the sshd service with the command:

service sshd restart

Ravi Chopra

I am an IT professional working in the industry for the last 12 years. I am here to share my Technical experience and knowledge with all of you.