[Nolug] windows VNC and SSH problem

From: Joey Kelly <geek_at_joeykelly.net>
Date: 18 Oct 2002 16:36:08 +0000
Message-Id: <1034958968.30048.11.camel@octopus>

Scott and whoever else wants to take a look at this,

Here's where I stand with my A-to-D windows VNC project:


A = windows box at work
B = office firewall
C = linux desktop at home
D = windows box at home

D is running vncserver on port 5900

C has port 5900 on localhost mapped to port 5900 on D, using rinetd
(but any port redirection app will work)

netstat tells me localhost on C has port 5900 listening.
I tested this link by X-forwarding ssh from B to C and running vncviewer
pointed at localhost:5900 on C and I am able to log on to D using the
vnc password prompt.

Ok, so I kill vncviewer on C and try to connect using ssh and fowarded
ports from A

A is using ssh to connect to C and is forwarding port 5900 to port 5900
on C
(ssh C -L 5900:C:5900)

netstat on A tells me I've got port 5900 running on localhost

I try to point vncviewer on A at localhost:5900
I get this error on my ssh console:
channel 2: open failed: connect failed: connection refused.

Ok, so maybe I have the port forwarding wrong.
I changed flags and turned the connection around:
ssh C -R 5900:C:5900
but this failed totally.
netstat on A doesn't even show 5900 open at all.


Joey Kelly
Linux consultant in New Orleans, Louisiana, USA
Alcohol and Calculus don't mix. Never drink and derive.
Nolug mailing list
Received on 10/18/02

This archive was generated by hypermail 2.2.0 : 12/19/08 EST