ESXi hosts enable a few services by default, but there are some additional services that are installed but blocked. In some cases, you might want to enable SSH on the host. However, since VMware does not recommend enabling SSH and will display a warning. You can set an advanced setting to disable this warning.
To begin with, you should open a PowerCLI prompt and connect to an ESXi or vCenter host. You will also want to store a
VMHost object in a variable named
Get-VMHostServicecmdlet and pass the
VMHostobject into the cmdlet as follows:
$esxihost | Get-VMHostService ...