Enabling ssh and ftp access to your ESXi host.

June 29th, 2009

This will be the first of  a series of posts regarding the backup of ESXi Virtual Machines from an ESXi host. This will probably take four or five seperate blogs to explain.

Stage 1 – Enabling ssh and ftp access on your ESXi host.

The default setting for any ESXi host is to have ssh and ftp access disabled, not great for administering the box.  To enable it:

Once the machine has booted, press ALT + F1

type: unsupported (this text will not be displayed, if you make a mistake CTRL + U clears the input)

now you will need to enter the root password.

  1. At the prompt type “vi /etc/inetd.conf”
  2. Look for the line that starts with “#ssh” and “#ftp” (you can search with pressing “/”)
  3. Remove the “#” in both places (press the “x” if the cursor is on the character)
  4. Save “/etc/inetd.conf” by typing “:wq!”
  5. Restart the management service “/sbin/services.sh restart”

The Management Service will now restart (takes a couple of mins)

Now you need to kill the inetd service;

  1. ps -a | grep inetd
  2. kill (# of inetd service)
  3. inetd

Press Alt+F2 to return the server to DCUI mode.

Voila! You can now use your favourite ssh client to access the ESXi host.


4 Responses to “Enabling ssh and ftp access to your ESXi host.”

  1. Creating ESXi snapshot backups with ghettoVCB.sh - Technology Blog – Guides for Sys Admin on July 2, 2009 4:08 am

    [...] 2. Now, you’ll need to ftp these files to you ESXi host (If you haven’t already enabled ftp access, you can find my guide on how to do it here http://www.rancidswan.com/?p=4) [...]

  2. someguyfrominternet on November 18, 2009 10:33 am

    do not use kill and run it again.
    just kill -HUP $PID, to reload configurations.
    thanks.

  3. matt on August 16, 2010 2:36 pm

    How do you enable these services if you are running ESXi on a USB device. I had No native OS on my bare metal.

  4. admin on August 17, 2010 2:19 am

    Regardless of the device, you must be able to access the ESXi management screens on the host. This is where you can allow SSH and FTP

Trackback URI | Comments RSS

Leave a Reply

Name (required)

Email (required)

Website

Speak your mind

  • Latest News

  • Blogroll
  • Admin