When I ssh into a headless Linux Mint 17 system, it doesn't create update / create an .Xauthority file.
Moreover, when I run
xauth I get the reply:
marty@N40L ~ $ xauth xauth: file /home/marty/.Xauthority does not exist Using authority file /home/marty/.Xauthority xauth>exit marty@N40L ~ $ xauth xauth: file /home/marty/.Xauthority does not exist Using authority file /home/marty/.Xauthority xauth>
It doesn't create the file.
When I connect monitor, then log in locally, the file is created but when I try to add an entry (because my SSH doesn't do it for me):
marty@N40L ~ $ xauth list N40L/unix:0 MIT-MAGIC-COOKIE-1 34eee3b15cdb281021502d40dfba1cf2 localhost.localdomain/unix:0 MIT-MAGIC-COOKIE-1 34eee3b15cdb281021502d40dfba1cf2 marty@N40L ~ $ ls -d .X* -rw------- 1 marty marty 115 Sep 3 12:03 .Xauthority marty@N40L ~ $ xauth generate $DISPLAY . PuTTY X11 proxy: wrong authorisation protocol attemptedxauth: (argv):1: unable to open display "localhost:10.0".
Incidentally, doing a
netstat --listen shows the port listening:
tcp 0 0 localhost:6010 *:* LISTEN
AGH, more info. I logged out of the X session on the server, and now the .Xauthority file has disappeared. It seems the file is ONLY there when logged in locally. Can anyone tell me why, or how I can fix this?
I created a virgin user on the system called "test". I then logged in, and without ANY other commands, ran xeyes. Which worked! So it's ONLY the user "marty" that cannot xforward. How do I copy the settings from test to marty?