HOWTO: ESXi and SSH

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:

  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”

Done!




You can leave a response, or trackback from your own site.

64 Responses to “HOWTO: ESXi and SSH”

  1. [...] These instructions were shamelessly stolen from this famous article. [...]

  2. 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

  3. 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

  4. [...] 参考这里:http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/ [...]

  5. sureshs says:

    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.

  6. sai r says:

    thanks a lot, that worked like a charm..

  7. [...] 参考这里:http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/ [...]

  8. tang214 says:

    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.

  9. black says:

    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 :)

  10. Max500 says:

    Hello,

    can I connect to the ESXi Console (the grey/yellow one) via ssh? I want to customize the System with .

    Many thanks, Max

  11. Max500 says:

    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

  12. Alex says:

    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

  13. [...] der lokalen Anmeldung ist außerdem die Einrichtung von SSH möglich. Nach erfolgreicher Authentifizierung sollte die Eingabeaufforderung [...]

Leave a Reply

Subscribe to RSS Feed Follow me on Twitter!