Enable the Root user SSH access in vSphere ESX 4

2010 June 20
by Paul McSharry

As a security meaure,  SSH access to the service console  using the Root account is disabled by default on vSPhere ESX 4.   Although not best practice,  there are times you may wish to enable access to the Root user.

Method – CLI commands show in bold

  1. Login as Root to the ESX console
  2. Go to the SSH directory  –  cd /etc/ssh
  3. Open the ssh_config  file –  nano sshd_config
  4. Change PermitRootLogin no  to PermitRootLogin yes
  5. Save and exit the config file   – CTRL+ X , click Y to confirm
  6. Restart the SSHD service  – service sshd restart
  7. Amend the service console firewall rules -   esxcfg-firewall -e sshClient and esxcfg-firewall -e sshServer

The Root account should now be able to connect remotely using SSH

Please note, this applies to ESX only,  ESXi does not have a Service Console.   Access is provided using the remote command line interface or pearl toolkit.  SSH access can be configured to the  support mode, however it is enabled in a different manner.

5 Responses leave one →
  1. June 22, 2010

    Great information! I’ve been looking for something like this for a while now. Thanks!

  2. June 24, 2010

    Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

  3. June 25, 2010

    My cousin recommended this blog and she was totally right keep up the fantastic work!

Trackbacks and Pingbacks

  1. Enable the Root user SSH access within vSphere ESX 4 | A Technical …
  2. It Box @ All Around the World News

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS