This content has been marked as final. Show 2 replies
You can tunnel VNC over ssh. For this solution you do not need to open any firewall ports beside TCP port 22 for ssh and should have no trouble with network address translation (NAT). You will need to have the X window system and vncserver installed on the remote server, but you do not need to run a X window server on your local (client) workstation.
Connect to the remote server system and start the vncserver:
You will require a password to access your desktops.
xauth: creating new authority file /home/oracle/.Xauthority
New 'vm014.example.com:1 (oracle)' desktop is vm014.example.com:1
Creating default startup script /home/oracle/.vnc/xstartup
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/vm014.example.com:1.log
From your local workstation, connect to the remote server and specify that the given port on the local host is to be forwarded to the given host and port on the remote side.
ssh -L 5901:localhost:5901 -N -f -l oracle vm014.example.com
Open your VNC viewer on your local workstation and connect to: localhost:5901
You can then run the Oracle installer. No need to use "xhost" authentication or set the DISPLAY variable.
Edited by: Dude on Jun 16, 2012 10:27 PM
Sorry for the delayed response. I had not forgotten about this, but it took me a while to circle back.
I had to read your note a few times to understand what you were saying, but it finally sunk in. : )
I don't have ssh installed on my local Windows machine. I use putty instead. I figured out how to do the same thing w putty, and it worked beautifully. Now my local vncviewer works again, AND I can tunnel securely over the ssh protocol.
The steps I executed on Windows 7 for putty.
1) put putty directory in Windows path.
2) open DOS window
3) plink -ssh <remote host> -l <remote user> -i <private key> -L <local port>:<remote host>:<remote port>
4) run local vnc viewer and connect to localhost:local port.