- /usr/bin/xauth: file /root/.Xauthority does not exist
Solution
Go into the sshd_config file
vi /etc/ssh/sshd_config
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.
Or
Create n new file: touch ~/.Xauthority
Log out and login in again.