I've been having issues getting X11 to work lately - several hours of googling and trying various fixes have got me nowhere. Here's the specifics:
- I am trying to log in to a department computer from my laptop via
ssh -Xover the local network. X11 worked perfectly for quite some time, then all of a sudden I started getting the error message:
X11 connection rejected because of wrong authentication
- I have tried about 6 different things to remedy this. I thought I had it working last week by modifying my local copy of
/etc/ssh/ssh_config, specifically I uncommented the line
ForwardX11Trusted yes. This apparently was a fluke because now it isn't working again
- I have also tried adding my MIT-MAGIC-COOKIE to the remote machine using xauth add, but this hasn't seemed to work.
- Tried everything here, in particular I have permissions for
.Xauthorityand my discs are nowhere near full (local and remote).
Here are the outputs of my various environment variables and so forth:
$ echo $DISPLAY # local machine
$ echo $DISPLAY # remote machine
$ xauth list # local
laptop/unix:0 MIT-MAGIC-COOKIE-1 45f1f58762e8040da75508d23df6819e
$ xauth list # remote
I image this last one is the key, but repeated attempts at xauth add on the remote machine don't seem to change this.
Any ideas? Let me know if I can provide any more outputs. Thanks!