Reverse Tunnelling -- SSH - Then VNC -- Question
Jessani, Karim (CSS)
Karim.Jessani "at" css.gov.on.ca
Fri Dec 9 15:29:01 2005
Sorry..this is what I want....Port 22 is the only "Open" port at "work" so, thats why I can only use SSH to connect to "HOME", now...what I do is send an email to myself at work from home and a macro opens up VNC to add a "client" and thus enabling me to connect to work from Home..(thats why I need to use the Reverse Tunnel Option)...
I can already establish my SSH Connection from Work to Home, but now I need a reverse so that when I am at Home, using SSH to tunnel, then VNC to control the work computer...my properties for VNC are set at auto, so Port 5900 (Main) and Port 5800 (Http)....somehow I need to use the port 22 for my connection back to Work from Home...
From: James Weatherall [mailto:jnw "at" realvnc.com]
Sent: December 9, 2005 10:13 AM
To: Jessani, Karim (CSS); vnc-list "at" realvnc.com
Subject: RE: Reverse Tunnelling -- SSH - Then VNC -- Question
The problem you have is that you are telling ssh to forward connections to
port 5900 on the ssh server machine to port 6500 on the ssh client machine,
and are then telling VNC Server to connect to port 6500 or 5500.
Assuming that what you are actually trying to do is connect from work to
home via SSH, then connect out from work to a listening viewer running at
home, you probably want:
ssh -L 5501:localhost:5500 126.96.36.199
And then connect VNC Server out to it with:
winvnc4 -connect localhost::5501
This will cause your work desktop to display on your home system, assuming
that a listening viewer is running on port 5500 on that system.
But I'm not sure that that's what you mean..
Wez @ RealVNC Ltd.
> -----Original Message-----
> From: vnc-list-admin "at" realvnc.com
> [mailto:vnc-list-admin "at" realvnc.com] On Behalf Of Jessani, Karim (CSS)
> Sent: 09 December 2005 14:20
> To: vnc-list "at" realvnc.com
> Subject: Reverse Tunnelling -- SSH - Then VNC -- Question
> I have installed and running an SSH Server at "work" ...only
> port 22 is open...
> installed VNC viewer and server at work and home
> now I can connect to "home" using SSH ..but how to do a
> "reverse" connection back to work and with that connect to
> "work" using VNC
> so I did the following:
> ssh -R 5900:127.0.0.1:6500 188.8.131.52
> I can then connect perfectly..BUT...
> with RealVNC I add a new client (at work, while the listener
> is running at home) -> i type the following
> Localhost::6500 -- does not work
> localhost::5500 -- does not work
> 127.0.0.1::5500 -- infinite loop of windows
> Anyone know what the heck I am doing wrong???
> The issue I have is that port 22 is the only one open so I
> need to use that as the "Forwarding" port from Home back to Work....
> THANKS ALOT
> Karim J
> VNC-List mailing list
> VNC-List "at" realvnc.com
> To remove yourself from the list visit: