Ssh – How to disable/suppress the warning I get for having SSH enabled on an ESX/ESXi host

sshvmware-esxvmware-esxivmware-vcentervmware-vsphere

I administer a large number of ESXi hosts, and in order to do that efficiently, I pretty much need to have SSH allowed into the hosts at all times, as it's just far too burdensome to enable and disable SSH access through vCenter/vSphere on every host every time I need to log into a host and view the CLI or SCP files between hosts, or whatever else.

However, the problem I'm facing is that the default behavior in vSphere is to display a warning icon and nag-banner on any host for which SSH access is enabled.

enter image description here

More than just being annoying, this makes it impossible to see from a quick visual scan if there's a warning condition I actually care about on any of my hosts, like high CPU or memory usage, or low disk space, loss of redundancy, etc.

So, how do I get rid of this warning icon (and if possible, the nag banner as well)?

Best Answer

There are different ways to change this option.

All these solutions are listed in the VMware KB 2003637.

About SSH, you might find useful the esxcli way with :

vim-cmd hostsvc/advopt/update UserVars.SuppressShellWarning long 1

The full documentation : Cluster warning for ESXi Shell and SSH appear on an ESXi 5.x host