Assume the Webserver lives on host wwwsecrete visible from charly with IP address 192.168.111.111 and uses port 80 as webservers normally do.
The following command connects this service to port 10080 on the local maschine:
ssh charly.physik.uni-muenchen.de -L 10080:192.168.111.111:80In mozilla use as URL:
http://localhost:10080/atlas/slowcontrol/slowcontrol.html
On 192.168.222.222 with name wwwsecrete you start the VNCserver. (Since you most likely can not directly login to wwwsecrete you also have to that via charly)
vncserver -geometry 1280x1024The response of the program is:
New 'wwwsecrete:1 (user)' desktop is wwwsecrete:1On your local maschine you establish the tunnel through charly:
ssh charly.physik.uni-muenchen.de -L 15901:192.168.222.222:5901Now you can start the VNCviewer on your local machine with:
vncviewer localhost:15901