Article
2439
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.
Method 1:
- Login to the service console.
- Open the file /etc/ssh/sshd_config:
vi /etc/ssh/sshd_config
-
See the line PermitRootLogin and its value.
By default the value will be "no".
Change the value to "yes".
It should be: PermitRootLogin yes.
- Save the file and close it.
- Now restart the service with the following command:
/etc/init.d/sshd restart
- If you can't remote login to the machine:
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.
Method 2:
- Install the VI Client in any Windows machine.
- Login to the ESX Server using the VI Client.
- Click on the host, go to the configuration tab.
- Now click on the properties link.
- A list of services dialog will be shown, select the "ssh server" service and click ok.
- If there is a problem in logging remotely to the server then restart the machine.
- Now you should be able to login to the ESX Server remotely.
Related Articles
- Managing Files in Local and Remote Windows Machines
- PlateSpin Orchestrate: Configure VMotion (Live Migration) of a Virtual Machine in VCenter 2.x
- How to Launch Remote Console for ESX VMs Without Installing VNC Server on Each VM
- How to add Virtual Hard Disks and get them to work inside the Guest Operating System
- Using OpenSSH to Manage Your Novell OES Server Remotely







0