Connecting to the ESXi host using SSH fails with the error: Network error: Connection Refused
book
Article ID: 345668
calendar_today
Updated On:
Products
VMware vSphere ESXi
Issue/Introduction
Symptoms:
Unable to add the ESXi host to vCenter Server
Cannot connect to the ESXi host using SSH
Connecting to the ESXi host using SSH fails
You see the error:
Cannot contact the specified host (IP Address/hostname). The host may not be available on the network, a network configuration problem may exist. or the management service on this host may not be responding.
Cannot connect to the ESXi host using putty
When connecting to the ESXi host using putty, you see the error:
This issue may occur if the /etc/inetd.conffile is empty or does not contain the correct settings for remote shell access and VMware authentication daemon.
Note: In ESXi 5.x and 6.0, theinetd.conffile is located at/var/run/.
Resolution
To resolve this issue:
Connect to the ESXi console directly using KVM session , such as iLO, iLOM, DRAC, RSA, or IP KVM, press ALT+F1, and then log in as root.
Open the inetd.conf file using a text editor.
To open the file using the vi editor, run this command:
# vi /etc/inetd.conf
Ensure that the contents of the /etc/inetd.conf file are similar to: