I’ve noticed many of the hits on my blog are related to ESXi. One of the most asked questions is how can I SSH to an ESXi hosts? Looking at my wordpress stats, this is also one of the top searches.
By default this isn’t possible. But there’s a way to get this working, just do the following:
- Go to the ESXi console and press alt+F1
- Type: unsupported
- Enter the root password(No prompt, typing is blindly)
- At the prompt type “vi /etc/inetd.conf”
- Look for the line that starts with “#ssh” (you can search with pressing “/”)
- Remove the “#” (press the “x” if the cursor is on the character)
- Save “/etc/inetd.conf” by typing “:wq!”
- Restart the management service “/sbin/services.sh restart”
Done!





vSphere 4.0 Quick Start Guide
[...] These instructions were shamelessly stolen from this famous article. [...]
1. Go to the ESXi console and press alt+F1
2. Type: unsupported
3. Enter the root password(No prompt, typing is blindly)
4. At the prompt type “vi /etc/inetd.conf”
5. Look for the line that starts with “#ssh” (you can search with pressing “/”)
6. Remove the “#” (press the “x” if the cursor is on the character)
7. Save “/etc/inetd.conf” by typing “:wq!”
8. Restart the management service “/sbin/services.sh restart”
10 – Kill inetd : kill `ps | grep inetd | cut -f2 -d” “‘
11 – Start inetd: inetd
If whe you unsupported nothing happens fallow this:
1 – Open the VI client, click onto the ESXi server you want to manage and go to Configuration TAB;
2 – Advanced Settings
3 – Uncheck the VMkernel.boot.techSupportMode
4 – Reboot the ESXi Server. Before restarting the host, you should shut down virtual machines on that.
Source: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003677
[...] 参考这里:http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/ [...]
I need to run my linux application from the unsupported console. But how to copy my application into the ESXi 4.0 drop box and run it in the unsupported console.
[...] http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/ [...]
thanks a lot, that worked like a charm..
[...] 参考这里:http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/ [...]
When I perform this modification and then reboot, ESXi does not start back up. It just comes to a screen with a blinking cursor and I am unable to access anything through the VMWare Infrastructure Client or through the physical machine. Has anyone had this happen and how can I fix it? Thanks.
how can i add a RSA ID in .ssh ?
every time i restart the ESXi the .ssh is removed ….
(it is NOT a embedded system) the ESXi is normal installet on a Raid Array)
i need to have a automatic RSA login to the ESXi …
plz help
Hello,
can I connect to the ESXi Console (the grey/yellow one) via ssh? I want to customize the System with .
Many thanks, Max
Hello,
can I connect to the ESXi Console (the grey/yellow one) via ssh? I want to customize the System with F2.
Many thanks, Max
Black:
Add to /etc/rc.local ->
mkdir /.ssh
cp /vmfs/volumes/[somedatastore1]/authorized_keys /.ssh/
chmod -R 600 /.ssh
You will need to add the public key from the host you need to connect from to the file /vmfs/volumes/[somedatastore1]/authorized_keys
This file will reside on a datastore, the root homedir resides on ramdisk, so you need to copy it over every time you reboot.
Good luck
[...] der lokalen Anmeldung ist außerdem die Einrichtung von SSH möglich. Nach erfolgreicher Authentifizierung sollte die Eingabeaufforderung [...]