How to enable telnet and SSH in ESX 4.0


By default telnet and SSH is disabled in ESX 4.0 you have to enable through ESX console.

  • At the console of the ESX host, press ALT-F1 to access the console window.
  • type unsupported in the console and then press Enter. You will not see the text while you typing.
  • If you typed unsupported correctly, you will see a password prompt. Enter root password. Now you are ~# prompt.
  • Type cd /etc in # prompt
  • Type vi /etc/inetd.conf to view inetd.conf file
  • Press insert key of your key board. Find the lines that begins with #ssh and and #telnet by moving your cursor down. delete the # from the beginning of lines using backspace. Now Press ESC button of your keyboard. Type :wq and hit enter. It will save edited inetd.conf file.
  • Now either restart Host or restart the inetd process. To restart inetd run ps | grep inetd to determine the process ID for the inetd process. The output of the command will be something like 1299 1299 busybox  inetd, and the process ID is 1299.
  • Type kill -HUP <process_id> (kill -HUP 1299 in this example)

Note:

  • To change the port for SSH, edit the file /etc/services and change the SSH port listed in the file. repeat steps as above
  • Enabling telnet is not recommended for security concern.
  • Putty can be used for either telnet or SSH
  • there are two lines for SSH with ESXi 4.0 – one for IPv4 and the other for IPv6. Do as appropriate for you.
  • It is recommended that you enable SSH just after installing ESX and setting up management IP. Restarting ESX in production environment might disrupt systems access.

Author: Raihan Al-Beruni

This is me.

3 thoughts on “How to enable telnet and SSH in ESX 4.0”

  1. To SSH in ESX 4.0 Update1 Simply
    Log to ESX Host from console
    Type vi /etc/ssh/sshd_config
    Press insert Key and scroll down to PermitRootLogin no
    Now delete no and type yes
    Press ESC Key
    Type :wq
    Type esxcfg-firewall -e sshServer
    esxcfg-firewall -e sshClient
    Now use Putty to do SSH
    All Done. Cheers, Raihan

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s