2007-02-22

SSH Tunneling.

In the company I work for, the administrators only offer SSH connection for all employees to use at their homes. But, sometimes, I need to see some GUI to make sure what I have done are correct. For instance, I want to use VNC connection. I can use SSH tunneling to create a tunnel between your VNC server port and local port. Here are the steps,

* In remote machine, start a VNC server by vncserver :90 (the actual port is 5990)

* In local machine, use PuTTY to build a SSH tunnel between local port and remote port. For example, I want to create a tunnel between local port 5901 and remote port 5900, like the image below. After the host is opened, use a VNC viewer to open the VNC connection.

沒有留言:

張貼留言