This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem Tunneling VNC through SSH




Hi all,
Has anyone replied to Borre Sanders.  I searched through all of the postings in
the mailing list archive, but I couldn't find any.  I ask because I am having
the same problem.  I pasted his orginal post and included information about my
own problem afterward.  Any help is greatly appreciated.  Thank you.
------------------------------------------------------------------------------
Hello,

Last week I got sshd working, i.e. I can open a remote shell now.

my_server: runs sshd, VNC server
my_workstation: runs ssh, VNC client

When on my_workstation I start ssh like this:
'ssh -L 5901:my_server:5900 my_server'
port 5900 on my_server then supposedly is forwarded to
port 5901 on my_workstation, which corresponds to display 1.
I expect to be able to securely connect to the VNC server running
on my_server using 'vncviewer my_workstation:1'.

It doesn't work though. Has anybody got VNC or other connections
to work similar to the way I described here, using Sergey
Okhapkin's implementation of SSH V1.2.26? Your help would be
appreciated.

Thanks in advance,
Borre Sanders.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have a Windows NT 4.0 workstation which I am using as the sshd server and VNC
server.  Both services are up and running.  I am connecting to the workstation
with an SSH client and the VNC viewer on a Windows NT 4.0 workstation.  I have
been able to connect to both sshd and vnc servers without any problem
individually.  My problem occurs when I try to tunnel VNC through SSH.  I am
using the command 'ssh2 -L 5901:myvncserver:5900 -C -g userid@mysshserver'.
After I have established the connection to sshd, I then try to open the vnc
viewer and connect to vnc server 'localhost:1'.  The connection seems to hang
because it eventually times out.  I am behind a firewall, so I am trying to make
the connection work locally before I attempt it from outside the firewall coming
in.  If anyone has any ideas, I would be so happy to try your suggestions.
Thanks so much!

Lesley Lahman



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]