Guide
How to manage a VMware ESXi host remotely
A VMware ESXi host is mostly managed in a browser, through the ESXi Host Client, or through the vSphere Client when vCenter looks after several hosts. For the jobs the web interface doesn't cover, there's the ESXi Shell over SSH, with esxcli and vim-cmd.
This guide puts both in the RemoteAccessApp app for Windows, next to the RDP and SSH connections for your guests, and is honest about what works differently on ESXi.
- Host Client in a tab
- esxcli and vim-cmd over SSH
- RDP and SSH into guests
Updated · Works on Windows 10 and 11
Set up an ESXi host
Step 1: Save the Host Client as a web panel
On the Connections page of the RemoteAccessApp app, add a web panel with the host's address, such as
https://192.168.1.20/ui. ESXi ships with a self-signed certificate: the tab asks about it once and remembers a certificate you've accepted. Save the user name (usuallyroot) and Fill sign-in types it in.Step 2: Turn on SSH on the host, when you need it
SSH is off on ESXi by default. In the Host Client, go to Manage, then Services, select
TSM-SSHand start it. You can also turn it on at the host's own console (the DCUI), under troubleshooting options. ESXi shows a warning while SSH is on; many people turn it off again when they're done.Step 3: Add the host as an SSH host
Click Add host, choose SSH, and enter the same address with user
root. On the first connection, compare the key fingerprint with the one the host shows before you trust it; see server keys.Step 4: Use a key for root
ESXi keeps root's authorized keys in its own place:
/etc/ssh/keys-root/authorized_keys, not in a home folder. Copy your public key from Keys & passwords, add it to that file, and choose key sign-in for the host. See the SSH keys help.Step 5: Add your guests
Add each Windows VM as an RDP host and each Linux VM as an SSH host, in the same group as the host. Tags such as
esxiorwindows-vmmake them easy to filter.
The Host Client and the vSphere Client
A web panel tab is a full browser view, with back, forward, reload, Fill sign-in, Copy password and Open in browser. The Host Client's VM consoles open in it, and a console that opens in a new window becomes another tab.
If vCenter manages your hosts, save the vSphere Client as a web panel too, at your vCenter's address. Keep both: the Host Client is how you reach a host when vCenter itself is down. A Proxmox node's web interface goes in a web panel the same way; see Proxmox VE remote management.
The ESXi Shell: esxcli and vim-cmd
The ESXi Shell is a small BusyBox-based shell, not a full Linux system, but it has the two tools that matter. A few read-only commands to start with:
esxcli system version get esxcli storage filesystem list esxcli network ip interface ipv4 get vim-cmd vmsvc/getallvms vim-cmd vmsvc/power.getstate 12
vim-cmd vmsvc/getallvms lists each VM with its id, and the other vmsvc commands take that id (12 above is just an example). vim-cmd vmsvc/power.on, power.shutdown and power.off change a VM's state; RemoteAccessApp has no VM buttons of its own, so this, or the Host Client, is how you do it.
Saved scripts work here too. Save a check like the one above in the terminal's Scripts & History panel and run it on several ESXi hosts at once with Run on hosts…, which shows each host's output and result. Stick to commands that ESXi's shell has: many Linux tools aren't there.
Datastore files: ISOs and VM folders
Datastores appear in the shell under /vmfs/volumes/, one folder per datastore, with each VM in its own folder. Find the datastore names with esxcli storage filesystem list.
Where your ESXi host accepts SFTP connections, open its files in the app's two-pane file browser, or copy an ISO straight from another server into a datastore folder with a server-to-server copy. If your host doesn't offer SFTP, upload ISOs with the datastore browser in the Host Client instead, which works in the web panel tab. If your ISOs live on a NAS, TrueNAS, Unraid and NAS remote access shows how to open its files in the same app.
Copying VM disks
What works differently on ESXi
- No server dashboard. The live dashboard reads Linux, macOS, FreeBSD and Windows servers, and ESXi isn't one of them. Use the Host Client's monitor pages instead, in the web panel tab.
- No Containers tab. There's no Docker on the host itself.
- No VNC consoles. ESXi's VM consoles are in the Host Client, so for a guest's own desktop use RDP (Windows) or SSH (Linux) into the guest.
- SSH is often off. If a connection is refused, check that
TSM-SSHis running.
From outside your network
Never put the Host Client or vCenter on the internet, and the same goes for your firewall's admin page (see how to reach pfSense, OPNsense and router admin pages safely). When you're away, open a Windows PC at home with RemoteAccessApp and use the Host Client in its browser, with no open ports; or, from the website, open the host's saved SSH host Through my PC to reach its shell at a local address. The guide to managing Proxmox, VMware and KVM hosts covers both, and why exposed web UIs are a risk explains the reasons.
Questions, answered
More homelab and virtualization guides
- Manage Proxmox, VMware & KVM hostsSSH, web interfaces, RDP and VNC consoles, ISO and backup copies, scripts and dashboards for your hypervisor hosts and VMs, in one app.Read the guide
- Homelab managementOne app for a homelab: SSH, SFTP and FTP, RDP and VNC, web panels, a live host dashboard, and remote desktop for Windows and Linux PCs.Learn more
- Proxmox VE remote managementSSH to Proxmox VE nodes with keys, reach the web UI without opening ports, run qm and pct across nodes, and move ISOs and backups.Read the guide
- KVM and QEMU VM consoleslibvirt VNC consoles through an SSH tunnel, virsh for everything else, and honest limits for SPICE displays.Read the guide
- Manage Hyper-V remotelyRemote desktop and PowerShell on Hyper-V hosts, RDP into Windows guests, and the same command on many hosts.Read the guide
- TrueNAS, Unraid and NAS accessYour NAS web UI as a saved panel, SSH and SFTP with keys, a live dashboard and server-to-server copies.Read the guide
- pfSense, OPNsense and router adminKeep firewall and router admin pages off the internet and still reach them: web panels, a PC on the LAN, SSH and serial consoles.Read the guide
- Docker and Podman hostsContainers, logs, restarts and shells over SSH, host dashboards, and scripts across every Docker or Podman host.Read the guide
- Raspberry Pi and small serversSSH with keys, a VNC desktop through an SSH tunnel, a live dashboard and file copies for a Pi or any small Linux box.Read the guide
- Dell iDRAC remote accessThe iDRAC and its virtual console in a tab, racadm over SSH, and a way in from anywhere that never exposes it to the internet.Read the guide
- HPE iLO remote consoleiLO and its HTML5 console in a tab, power and the virtual serial port over SSH, and a private way in from anywhere.Read the guide
- Supermicro IPMI and iKVMThe BMC page and HTML5 iKVM in a tab, ipmitool from a server on the same network, and IPMI kept off the internet.Read the guide
- One app for your whole homelabWhy juggling terminals, browser tabs and viewers for a homelab gets old, and what one app for every host and VM looks like.Read the post
- Homelab maintenance checklistUpdates, backups, disk checks and consoles: a maintenance-night checklist for a homelab, worked through from one window.Read the post
- Stop exposing your hypervisor web UIWhy management web UIs belong on your own network, and how to reach them from anywhere without opening a port.Read the post
- 5 workflows for many serversGroups and tags, saved workspaces, one script on many hosts, direct server-to-server copies and live dashboards.Read the post
Related
- RDP & VNC managerSave RDP, VNC, SSH, SFTP, FTP hosts and web admin panels in one list, and open them in tabs.Learn more
- SSH & SFTP clientTerminal tabs, an SFTP and FTP file manager, key sign-in and one command to every server.Learn more
- Copy files between serversA step-by-step server-to-server copy over SFTP or FTP, with nothing saved on your own disk.Read the guide
- SecurityConsent, encryption, trusted consoles, signed updates and how your password is protected.Learn more
