First, go to the console of your ESXi server. Then follow the following directions:
- From the ESXi console hit Alt-F1
- Type in the word unsupported and hit enter (you will not see the characters appear on the screen)
- Type in your root password
- Edit the /etc/inetd.conf file by typing in vi /etc/inetd.conf
- Scroll through the file until you find the line that says #ssh and delete the # sign and save the file
- Now you can reboot the ESXi server and you will have shell access
Alternatively you can run the /sbin/services.sh restart command to restart the management services without rebooting the box.
That should do it!
-Cheers, RP

4 comments:
Hi Raj,
Instructions in your post on enabling ssh work perfectly, however I had to reboot the esxi server in order to get the ssh daemon to listen. The services.sh restart did not work.
KP
I've discovered that on ESXi 4.0, you have to kill the inetd process:
#ps | grep inetd
4856 4856 busybox inetd
#kill -HUP 4856
(In the above example, your process ID will be different.)
all good.... but how do you save the edited file?
In vi editor there's insert and command modes. You can see the mode in bottom left corner of the editor. I is for Insert and "-" is for Command.
To save the file and close the editor just type ZZ in command mode.
Yes, I had to check this out too for the first time :)
Post a Comment