VMware Warning: SSH or ESXi Shell for the host has been enabled

The bane of every administrator’s existence: A new warning has appeared!  This time we’re seeing a warning because SSH and or ESXi Shell was enabled, which in a lab environment is generally something we want to remain enabled.  By default, SSH is disabled on freshly installed ESXi hosts as a security measure.  It’s just one less attack surface to worry about. 

SSH for the host has been enabled

For those that want to leave it enabled in a lab environment, you can simply tell the host to stop reporting the issue.

In order to permanently suppress the warning, we’re going to need to set the Advanced System Setting UserVars.SuppressShellWarning to a value of 1.  There are two ways to do this, through the Embedded ESXi Host Client / vSphere UI in vCenter or from the command line via ESXCLI.

From the web UI:

  1. Go to the host with the warning, then navigate to Configure > System > Advanced System Settings.
  2. Click Edit on the top right.
  3. Filter by UserVars.Suppress and find UserVars.SuppressShellWarning.
  4. Change the value from 0 to 1, then click OK
Setting to suppress shell warnings

From the CLI:

  1. Either connect to the host via SSH or open the ESXi Shell.
  2. Run the command: esxcli system settings advanced set -o /UserVars/SuppressShellWarning -i 1

When you return to the Summary tab for that host in the web UI, you should see that the warning has cleared!  Don’t forget: A host with no warnings is a happy host!

If you want to read more about If you want to read more about about this issue, check out the VMware KB article: https://kb.vmware.com/s/article/2003637

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.