When I'm on a machine let's say called host1, I can enter:
Code:
xclock -display host1:0.0
and xclock will display on the local machine.
After I ssh to the same machine and enter the password (we have software that ssh's to itself)
Code:
ssh host1
<password>
xclock -display host1:0.0
I get an error:
Code:
Xlib: connection to "host1:0.0" refused by server.
Xlib: No protocol specified
Error: Can't open display: host1:0.0
I tried deleting the user's .ICEAuthority and .Xauthority files, logged out, logged in. It recreated them, but still same error.
I know "xhost +" would work and I tried it, but I'd like to avoid it since the security holes.
I also created a new user and tried sshing to myself and it works! I'm just wondering how I can fix this particular user's problem. It has to do something with the user's NFS mounted home directory, right? Some files must be corrupted.