Control ESXi SSH service via VMware API

Royal TS already allows connections of the type “VMware” to be configured. After a successful login, these can be used to retrieve status information about the VMs running on the host via the VMware API and, with the appropriate licensing for write access, to perform actions on those VMs. This raises the question of whether the same mechanism could also be used to control the SSH service on an ESXi host.

The SSH connection to the ESXi host can already be set up in Royal TS. However, in many environments the SSH service is disabled by default for security reasons, so it currently has to be started manually via the ESXi web interface before each session.

It would therefore be helpful if Royal TS could automatically issue an API call to start the SSH service before establishing a connection of the type “VMware Host (SSH)”. Alternatively, separate actions such as “Enable SSH service on host” and “Disable SSH service on host” would also be useful. The option to disable the service after finishing work would be particularly valuable to us, as it otherwise remains active until the host is rebooted.