It’s necessary to have remote access to the ESX server when we are managing virtual machines. By default SSH service will not be accessed by any user, not even root. As the ESX is a hypervisor for security reasons the SSH service is blocked and not enabled. When managing the ESX Server from PlateSpin Orchestrate we need to have remote access to the ESX Server to monitor or to do some tasks.
There are two ways to enable the SSH service for the root user.
See the line PermitRootLogin and its value.
By default the value will be “no”.
Change the value to “yes”.
It should be: PermitRootLogin yes.
Check whether the SSH service is blocked by the firewall or not.
To find out use the following command:
esxcfg-firewall -q | grep sshServer
Check whether “sshServer” is in the output or not.
If it’s not there then enable the service with the following command:
esxcfg-firewall -e sshServer
Now we are able to login to the ESX Server remotely with the SSH service.
Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment. It just worked for at least one person, and perhaps it will be useful for you too. Be sure to test in a non-production environment.