On FC7, x86_64, kernel 188.8.131.52-80.fc7
with all the latest updates on system.
On host, as root I do
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.
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
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:
(In reply to comment #1)
> You may need to specify -X or otherwise enable X11Forwarding in your SSH.
> For better instructions see:
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.
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.