Indeed it’s pretty clear from the above error is that, the complaint here is there is no xauthority file in the user’s home directory.
Even though there are a couple of methods to create Xauthority file, one of it is, enabling X11 forwarding in SSH. ssh will automatically set up Xauthority data on the server machine in forwarding mode. So check below:
Please make sure the below parameters are set as shown below in /etc/ssh/sshd_config file.
[root@node1 ~]# cat /etc/ssh/sshd_config |grep -i X11
X11UseLocalhost no
X11Forwarding yes
It’s also possible to generate this file using xauth command.
xauth generate $DISPLAY .