To ensure that the SSH service is enabled in the ESX host firewall through the VMware Infrastructure/vSphere Client:
-
Log in to VirtualCenter/vCenter Server or directly to the ESX host with the vSphere Client as an administrative user.
-
Click the ESX host in the inventory.
-
Click the Configuration tab.
-
Click the Security Profile Link.
-
Review the Firewall properties and ensure that SSH Server is listed under Incoming Connections. If SSH Server is not listed:
-
Click Properties.
-
Select the SSH Server check box.
-
Click OK.
Note: If you want to be able to use SSH from the ESX host, ensure that the SSH Client option is checked using the same steps as outlined above.
Alternatively to enable this from the ESX service console:
-
Log in to the ESX service console as root .
-
Type this command to determine if the sshServer port is enabled on the firewall:
[root@server]# esxcfg-firewall -q sshServer
Note: If you receive the error bash: esxcfg-firewall: command not found, execute:
su - and press Enter to try again.
-
Type this command to open the firewall port in case it is blocked:
[root@server]# esxcfg-firewall -e sshServer
Note: To close the SSH server port, type esxcfg-firewall -d sshServer.
Note: If you want to be able to use SSH from the ESX host, sshClient must be enabled using the same steps as outlined above.