Labels

Tuesday, March 14, 2017

X11 connection rejected because of wrong authentication

Remote window forwarding for different user

When I try the remote window forwarding from the default user I was able to successfully forward the window. But when I try this in a different user (oracle) this failed with the below error.

[oracle@oracle-rac-setup-node1 wso2]$ xterm
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).

This seems to be an issue with the cookie but I tried adding the cookie but didn't work so this will provide you an alternative to fix this issue.

1. Login as the super user
2. Copy the Xauthority file of the working user to the other user.
 
[wso2@oracle-rac-setup-node1 ~]$ sudo -i
[root@oracle-rac-setup-node1 ~]# cp /home/wso2/.Xauthority /home/oracle/.Xauthority
 
Login to the oracle user and try xterm to verify if the window forwarding works.
[wso2@oracle-rac-setup-node1 ~]$ xterm 
 
 


No comments:

Post a Comment