vSphere + ESXi4 SSH Tunnel
In order to use vSphere properly over a SSH tunnel forward the following ports
- 902
- 443
If you still cannot connect with vSphere to your remote machine update your hosts file. For example, if your ESXi 4.0 server is named vmsrv1 edit your hosts file:
127.0.0.1 vmsrv1
With Windows your hosts file is located in C:\Windows\System32\Drivers\etc and under Linux /etc/hosts