Connecting to a Xen guest console via VNC
The following page outlines the process to create an SSH tunnel on Linux/UNIX and Microsoft Windows. The examples provided below are specifically for VNC access to a Xen guest via SSH tunnel; however, the process can be applied to any port.
- Open a terminal on your local machine and run the following command:
ssh -L PORT:localhost:PORT HOSTNAMEReplace:
PORT with the VNC port number provided when the Xen guest was created.
HOSTNAME with the address of the Xen host to connect to.
Open your VNC client of choice, and connect to localhost on the port specified above. For example:
Note: A prerequisite for the following process is PuTTY
- Run PuTTY:
Start > Programs > Putty > Putty.exe
- In the PuTTY window under 'Basic options':
- Under 'protocol' select SSH.
- Under 'hostname' enter the address of the Xen server to connect to.
- In the left panel select SSH/Tunnels.
- In 'Add new forwarded port':
- Under 'Source port' enter the port for tunnelling.
- Under 'Destination' enter 'localhost:PORT'.
- Click 'Add', then 'Open'.
Open your VNC client of choice, and connect to localhost on the port specified above.
The SSH Tunnel will be terminated when PuTTY is closed.