tech notes

Connecting to a VM’s console via a SSH tunnel

From the client you have to build an SSH tunnel forwarding ports 443, 902, 903. Make sure you are *not* forwarding from 127.0.0.1 (since according to this posting on the VMware forums) this seems to have a special meaning when using the VMWare client, instead use 127.0.0.2. In this example the server’s IP address is 192.168.2.57, and the ssh machine is at 172.20.0.1, listening to port 3333:

ssh -L 127.0.0.2:443:192.168.2.57:443 -L 127.0.0.2:902:192.168.2.57:902 -L 127.0.0.2:903:192.168.2.57:903 root@172.20.0.1 -p 3333

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Archives