On FC7, x86_64, kernel 2.6.23.15-80.fc7 xorg-x11-server-Xorg-1.3.0.0-16.fc7, xorg-x11-apps-7.1-4.fc7 with all the latest updates on system. On host, as root I do xhost +localhost xhost +192.168.0.2 (my hosts IP address). I create a new user. I ssh into localhost as new user. In new user's shell, I type xterm. I get $ xterm Xlib: connection to ":0.0" refused by server Xlib: No protocol specified xterm Xt error: Can't open display: :0.0 In manpage of xhost, there is this: [+]name The given name (the plus sign is optional) is added to the list allowed to connect to the X server. The name can be a host name or a user name. So, as root again, I tried to add the new user name with xhost +newuser I got the error message: # xhost +newuser xhost: bad hostname "newuser" So, I dont understand how I can ssh from my localhost to my localhost as a user other than the user I am logged in as from the main gui console, AND be able to open graphical apps.
You may need to specify -X or otherwise enable X11Forwarding in your SSH. For better instructions see: http://www.xs4all.nl/~zweije/xauth.html
(In reply to comment #1) > You may need to specify -X or otherwise enable X11Forwarding in your SSH. > > For better instructions see: > http://www.xs4all.nl/~zweije/xauth.html > Thank you Alan for your comment and explanation re: using -X on ssh and modifying the sshd config file to allow X forwarding..etc. What about the manpage which is saying that one can add the username as in xhost +username which is clearly not correct by current implementation. Cheers, JD
The "NAMES" section later in the man page explains better what names are allowed - raw usernames are not allowed, only SecureRPC usernames or usernames using the si:localuser: protocol - I'll see if I can find a better way to word this to make it clearer.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.