How to enable SSH on ESX 3.5i
- At the console of the ESXi host, press ALT-F1 to access the console window.
- Enter unsupported in the console and then press Enter. You will not see the text you type in.
- If you typed in unsupported correctly, you will see the Tech Support Mode warning and a password prompt. Enter the password for the root login.
- You should then see the prompt of ~ #. Edit the file inetd.conf (enter the command vi /etc/inetd.conf).
- Find the line that begins with #ssh and remove the #. Then save the file. If you’re new to using vi, then move the cursor down to #ssh line and then press the Insert key. Move the cursor over one space and then hit backspace to delete the #. Then press ESC and type in :wq to save the file and exit vi. If you make a mistake, you can press the ESC key and then type it :q! to quit vi without saving the file.
- Once you’ve closed the vi editor, run the command /sbin/services.sh restart to restart the management services. You’ll now be able to connect to the ESXi host with a SSH client.
Update for ESXi 3.5 Update 2 – With Update 2 the service.sh command no longer restarts the inetd process which enables SSH access. You can either restart your host or 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. Then run kill -HUP <process_id> (kill -HUP 1299 in this example) and you’ll then be able to access the host via SSH.
About Michael
Michael Wilmsen is a experienced VMware Architect with more than 20 years in the IT industry. Main focus is VMware vSphere, Horizon View and Hyper Converged with a deep interest into performance and architecture.
Michael is VCDX 210 certified, has been rewarded with the vExpert title from 2011, Nutanix Tech Champion and a Nutanix Platform Professional.
By Chip, April 27, 2009 @ 18:16
kill -HUP `cat /var/run/inetd.pid` will save a step.
(those are backticks, to the left of the numeral 1 key on a US keyboard layout.)
Now, does anyone know how to make ssh use host keys?
By Mike, April 27, 2009 @ 18:50
I did not test it with ESX3.5i but with normal Linux you have to generate SSH keys using the ssh-keygen utility. You than have to copy the SSH key into the ~/.ssh/authorized_keys.
Good Luck
By Chip, April 27, 2009 @ 18:16
kill -HUP `cat /var/run/inetd.pid` will save a step.
(those are backticks, to the left of the numeral 1 key on a US keyboard layout.)
Now, does anyone know how to make ssh use host keys?
By Mike, April 27, 2009 @ 18:50
I did not test it with ESX3.5i but with normal Linux you have to generate SSH keys using the ssh-keygen utility. You than have to copy the SSH key into the ~/.ssh/authorized_keys.
Good Luck