vnc through two machines
bnepple "at" networkelements.com
Thu Jul 22 22:32:01 2004
Replying to you directly was an accident. Here is the posting for all to read
Thanks, I'll try it tonight when I get home. Hopefully putty can do this.
From: Jerome R. Westrick [mailto:jerry "at" Westrick.com]
Sent: Wednesday, July 21, 2004 10:53 PM
To: Nepple, Bruce
Subject: RE: vnc through two machines
Bruce please reply to list,
so other people can learn from this...
Then I might not have to answer the same thing to them!
No Since you seam to be confortable with the linux syntax
where goes: ssh -L 5902:linux2:5902 user "at" linux1
Connect to linux1, singon as user
Tunnel traffic from 5902 (on my machine)
Noe that linux2 is resolved on linux1, so it can be any
address linux understands (such as 192.168.x.y)
Note that only the mymachine:5902 <--> linux1 is encrypted,
the traffic linux1 <--> linux2:5902 is not encrypted, not compressed...
you can use this method to get to any machine inside local net
which includes linux.
This is so usefull that the linux versions of vnc often have a -via (ssh-server)
vncviewer linux2:2 -via user "at" linux1 will do exactly the same thing, and connect you
to vnc on Linux2 (works with tightvnc, but for some reason shortcut missing from real vnc)
On Thu, 2004-07-22 at 03:49, Nepple, Bruce wrote:
Are you saying that I need to start another ssh session on linux1 "ssh -L 5902:linux2:5902"
So, I start putty to linux1 (giving me an ssh session from windows to linux1),
then, in the shell I started on linux1 I ssh to linux2 "ssh -L 5902:linux2:5902 linux2", then start my vnc viewer on my windows
machine and it will see the vncserver on linux2. Sounds easy enough.
Do I need to open anything in the reverse direction? I tried it here at work and it didn't work, but
my setup is suspect.
on linux2 I ssh to linux1, then back to linux2 "ssh linux2 -L 5902:linux2:5902".
If I connect vnc to linux2:5902, it works (since that's where the server is), but
if I try linux1:5902 it fails to connect.
> -----Original Message-----
> From: Jerome R. Westrick [mailto:jerry "at" westrick.com]
> Sent: Wednesday, July 21, 2004 4:40 PM
> To: vnc-list "at" realvnc.com
> Subject: Re: vnc through two machines
> Tunnel through the Linux1 to Linux2...
> Tunnel Local 5902:Linux2:5902
> On Thu, 2004-07-22 at 01:06, Nepple, Bruce wrote:
> > I looked around and didn't see an answer to this. I know I
> could play around and *eventually*
> > get it right, but I'm sick of playing around this week.
> > Windows machine running vnc viewer tunnels through ssh to
> linux1 machine (over internet)
> > Now, how do I tunnel from linux1 machine to linux2 machine
> where vnc session is running
> > Can this all be done with the ssh connection to the first
> machine from windows, or do I have to
> > open another ssh link between linux1 and linux2 with some
> sort of forwarding
> > And, if it's being done with a single ssh, can putty do it?
> > windows (vnc viewer) ---> pub net ----> firewall --->linux1
> ---->priv net ----> linux2 (vnc server)
> > If vncserver runs on linux1, I know what to do. It's the
> extra hop to linux2 that puzzles me.
> > Thanks for saving me from the adventure game of figuring
> this out. I don't need it this week
> > Bruce
> > _______________________________________________
> > VNC-List mailing list
> > VNC-List "at" realvnc.com
> > To remove yourself from the list visit:
> > http://www.realvnc.com/mailman/listinfo/vnc-list
> VNC-List mailing list
> VNC-List "at" realvnc.com
> To remove yourself from the list visit: