You are here

howto: fix "X11 connection rejected because of wrong authentication."

recently i had an issue whereby i had previously logged into a machine and ran an app but after a reboot the app wouldn't work again. it kept giving me the following error message:

X11 connection rejected because of wrong authentication.

so i did some research and came up with this site. 

but the article still dint solve my problem . it turned out that the solution was very simple

rm -rf ~/.Xauthorit* 


somehow or other  my ~/.Xauthority was owned by root.root and removing the file fixed my problem


I am the Site Owner and I post my notes here.