I'm not sure how to fix the underlying problem, but you can work
around it with an SSH tunnel, if VNC will accept a connection from
"localhost".

Suppose VNC is running on display :1 on vncserver.mydomain.com.  This
corresponds to port 5801.  From machine3.mydomain.com, run:

      ssh -L 5802:vncserver.mydomain.com:5801 machine3.mydomain.com

Then also from machine3.mydomain.com (in another shell window
perhaps), run:

      vncviewer localhost:2

This assumes there is nothing else running on port 5802 of
machine3.mydomain.com (for example, no vncserver on display :2).

You can replace 5802 with any unused port, but it's easiest to use
something that is 5800+N where N is small, since "vncviewer
localhost:N" connects to port 5800+N.

--Robert


> Hi,
> I am using vncserver on Redhat 7.3. it's the one distributed with Redhat 
> install CD. 
> In my machine, I  uses hosts.deny to block all connection, and hosts.allow to 
> allow any connection from my domain. It works fine with telnet, ssh, etc.
> 
> VNCServer however, seems to have trouble recognizing machine name. So if for 
> example I connect from machine3.mydomain.com, it will be refused by vnc, 
> saying Connection from <ip_address of machine 3> refused. Eventhoug if I 
> explicitly put 
> ALL: machine3.mydomain.com in my hosts.allow, vnc will still refuse it. 
> 
> It seems that it can't convert/lookup the IP address to machine name so that 
> it can recognize that machine3 is in my domain. The only way I can make it 
> work is if I type the IP Address of machine 3 in my hosts.allow.
> 
> Is there any workaround for this? Any help is greatly appreciated.
> 
> Thanks in advance.
> Reuben D. Budiardja
> _______________________________________________
> VNC-List mailing list
> [EMAIL PROTECTED]
> http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to