vSphere client connect to ESXi host behind firewall with ssh tunnels

  +-------+         +-------------+ |     +--------+
  |  ESXi |---------|  ssh server |-|-----| client |  
  +-------+         +-------------+ |     +--------+

Tunnel localhost ports 443,902 and 903 through the ssh server to the ESXi host in putty or mobaxterm or whatever:

ssh -L443:esxi:443 me@sshserver
ssh -L902:esxi:902 me@sshserver
ssh -L903:esxi:903 me@sshserver

Just trying to connect to localhost in the client doesn’t work. Not entirely sure why. If you add an entry to the hosts file like: esxi esxi.wherever.com

Then you should be able to use the client to connect to ‘esxi’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s