Connect vsphere client via ssh tunnel

From lippmann wiki
Jump to: navigation, search

The vSphere client reverse resolves 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: -p 4432

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 -p 4432