Create a local account on the ESXi host and grant them Administrator role on the host , then thy will be able to SSH.
If the host is joined to AD the group members which is listed under "Config.HostAgent.plugins.hostsvc.esxAdminsGroup" will be default added to Administrator and granted access