- /usr/bin/xauth: file /root/.Xauthority does not exist
Go into the sshd_config file
Search and remove the # sign at the beginning of the 3 lines
X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes
Then restart sshd
systemctl restart sshd
Exit and login again. You will not get the error.
Create n new file: touch ~/.Xauthority
Log out and login in again.