The remote side’s root doesn’t have the right X11 magic cookie. Hand it over to the root.
xauth list $DISPLAY | xargs sudo -H xauth add
Another way:
“`shell
 sudo xauth merge $HOME/.Xauthority
 “`
Daily Memo so I don't forget
The remote side’s root doesn’t have the right X11 magic cookie. Hand it over to the root.
xauth list $DISPLAY | xargs sudo -H xauth add
Another way:
“`shell
 sudo xauth merge $HOME/.Xauthority
 “`