Wednesday, February 10, 2010

Set up SSH on ESXi server

Virtualization has become an integral part of any big IT environment with VMware being the clear market leader. Vmware offers two main version for it's server OS (which hosts the virtual machines - aka VM's ) :ESXi server being the light version and ESX being the "heavy" version. In this short post I will demonstrate how to enable SSH on the ESXi server, which can be used for some remote command line manipulations ;) OK, let's start, After EXSi has been deployed this is the console you will see:

At the console, hit "Alt-F1" to get the first console (you are on the second, by default):


Give the root password to log in.
You should get a shell prompt
with warning:

Please note that this is not a standard Unix/Linux shell, lots of commands are missing and others may behave differently.

Next, we need to enable SSH in inted.conf:

vi /etc/inetd.conf

Uncomment the "ssh" line & save the file.

Find the PID of inetd & HUP it so that the changes take care:

kill -HUP 1234

SSH is enabled from now, feel free to use it for monitoring, scripting etc..

No comments: