Ok so i installed xauth on the remote host. Problem is now i get this message using ssh login # <x-app> Xlib: connection to "192.168.0.3:0.0" refused by server Xlib: Client is not authorized to connect to Server error: Cant open display: 192.168.0.3:0 also now i cant open a remote x-app with a rsh login which i could before i installed xauth ! #<x-app> Error: Cant open display: Any ideas what could could be the solution here ? i still dont make much sense of the xauth man pages :-/
Roy Culley wrote:
The first thing to check is that the xauth program is installed on the remote host and that sshd can find it. It uses the xauth program to set up the .Xauthority file so that X clients can connect to your X server. xauth is normally installed as part of any basic X windows installation.
Regards, Roy
-- http://www.nitjueni.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
ve said:
Ok so i installed xauth on the remote host. Problem is now i get this message using ssh login
# <x-app> Xlib: connection to "192.168.0.3:0.0" refused by server Xlib: Client is not authorized to connect to Server error: Cant open display: 192.168.0.3:0
also now i cant open a remote x-app with a rsh login which i could before i installed xauth !
#<x-app> Error: Cant open display:
Any ideas what could could be the solution here ? i still dont make much sense of the xauth man pages :-/
When this happens, what is your DISPLAY variable set to? I get similar messages if I remotely log in, su to root, and then try to run an X-app as root because the display gets lost at the su. If I ssh to root@localhost instead of su then I can run X-apps as root and the windows go to the right place. The same thing applies if you make two "hops" (i.e. ssh foo then telnet bar). If ssh is working, your DISPLAY will be something like foo:11.1. The ".1" part is the hint, normally it's ".0"; also, the display number will not be "0", since that is the real X-server display. To do it's magic, ssh creates it's own virtual display, typically this starts at "10" if there are no other displays using that number. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
i have sorted out this problem now (thanks roy Culley !) the problem was that i was using ssh + xauth but i had also set the DISPLAY variable myself in /etc/profile. therefore messing things up with shh. One thing more though : can i login to the remote box with ssh from my local box console, run "startx" and have the remote box X display on my local box ? I have tried this ... but the remote X displays on the remote box. Is there a way to do this ? - ve
When this happens, what is your DISPLAY variable set to? I get similar messages if I remotely log in, su to root, and then try to run an X-app as root because the display gets lost at the su. If I ssh to root@localhost instead of su then I can run X-apps as root and the windows go to the right place. The same thing applies if you make two "hops" (i.e. ssh foo then telnet bar).
If ssh is working, your DISPLAY will be something like foo:11.1. The ".1" part is the hint, normally it's ".0"; also, the display number will not be "0", since that is the real X-server display. To do it's magic, ssh creates it's own virtual display, typically this starts at "10" if there are no other displays using that number.
# <x-app> Xlib: connection to "192.168.0.3:0.0" refused by server Xlib: Client is not authorized to connect to Server error: Cant open display: 192.168.0.3:0
-- http://www.nitjueni.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, I don't know if this is possible, but if not, there is VNC, a package in the SuSE-Distro (xap1), which allows controlling a remote box (Linux or Win) just like you were sitting there in front of the monitor :-) With vnc you can start a virtual X-Server and get access to it from different machines with the vnc-viewer. Hope this helps a bit, bye
One thing more though : can i login to the remote box with ssh from my local box console, run "startx" and have the remote box X display on my local box ? I have tried this ... but the remote X displays on the remote box. Is there a way to do this ?
- ve
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
jmgrant@primenet.com
-
kick@c2i.net
-
Peter.Bergmann@rhein-main.netsurf.de