X11 connection rejected because of wrong authentication November 28, 2023 by Tarik export XAUTHORITY=$HOME/.Xauthority This fix worked for me