Log on to the local console, Alt + F1 and type unsupported ENTER to connect to the console.
Enter the password when prompted.
Remove the # at the beginning of the #ssh line to uncomment the ssh service.
:wq! to write the changes and quit the vi editor.
Identify the inetd process using ps | grep inetd
restart the inetd service with kill -HUP pid
clear, exit, Alt + F2 to log out of the unsupported console. Esc to log out the local management console.
You’ll notice a warning appear in vSphere client stating that the remote administration console has been enabled. This is considered a security risk, but it is possible to suppress the warning if you wish to leave it open (not recommended).
Before quitting the console, type
esxcli system settings advanced set -o /UserVars/SuppressShellWarning -i 1
to disable the warning, or
esxcli system settings advanced set -o /UserVars/SuppressShellWarning -i 0
to re-enable it (recommended if you disable the ssh console again).