Matthew Earwicker said:
> I'm sure this must be quite simple really, but I am
> not sure what figures to use where.
>
> Scenario:
> Windows 2k computer running VNCserver, internal IP
> address 192.168.0.1
>
> Redhat 9 proxy running sshd internal IP address
> 192.168.0.254
>
> Firewall/router allowing incoming traffic to IP
> address PUBLICIP on port 5900 to be forwarded to
> internal IP 192.168.0.254 on port 5900.

If you are going to use an SSH tunnel you don't need these ports.  You
just need the SSH port forwarded to your SSH server (192.168.0.254).

> Redhat 8 desktop with ADSL connection to internet.
>
> What commands should I use to view Windows server on
> Redhat 8.
>
> Presumably ssh -l ...
> and then vncviewer ...
>
> But I'm not quite sure which IP address goes where
> (btw, if I dialin to the server I need to use the
> internal IP address rather than the name for my VNC
> connection).

You are doing the "More advanced use" section of
http://www.uk.research.att.com/archive/vnc/sshvnc.html

ssh -L 5901:192.168.0.1:5900 externalIP

then

vncviewer localhost:1

The big thing you have to remember is the tunnel is created on the SSH
server, so any addresses used in the "5901:192.168.0.1:5900" part are
coming from the SSH server.  As an example "5901:localhost:5900" would
open a tunnel to the SSH server's (it is localhost) port 5900.

The other thing to keep in mind (though it may not matter in your case) is
that communication from the SSH server to the VNC server in not encrypted,
communication from the Viewer to the SSH server is.

-- 
William Hooper
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to