Connect vsphere client via ssh tunnel
Jump to navigation
Jump to search
The vSphere client reverse resolves 127.0.0.1 or localhost to the hostname of the host system, and then forward resolves that to the IP address associated with that hostname.
As a result, an ssh tunnel like this:
ssh -L 443:172.16.4.51:443 -p 4432 maarten@lippmann.us
does not work for tunneling vsphere client connections to a remote esx server.
To make an ssh tunnel work for the vsphere client, the redirect has to be tied to the ip address used to route to the system that hosts the tunnel.
E.g. below:
ssh -L 10.26.84.91:443:172.16.4.51:443 -p 4432 maarten@lippmann.us