I've been puzzled lately with X11 way of authentication an incoming connection. I use several computers exclusively and want to be able to display stuff on the X server of one of them.
Here's my latest failure:
*) on computer A, I have a screen session running with DISPLAY set to ":0.0" (of course)
*) on computer B, I connect to computer A with ssh:
user@B:~ $ ssh -Y A
*) In this shell session (on A), I will get, e.g., DISPLAY=localhost:11.0 .
*) this gets me from B to A. Now I reconnect to the screen on A using: `screen -x' command.
*) What I want now is, under this `screen' session, to run a program on "A", but display its output on "B", like this:
user@A:~ $ DISPLAY=:0.0 xpdf stuff.pdf
Sadly I get this error:
X11 connection rejected because of wrong authentication.
Cannot parse arguments: Cannot open display:
I thought, since the ssh connection is mine, and the user under which the screen is running on "A" is also mine, why then can't I connect to my own X session under SSH?
I tried to import all the environment variables under the ssh terminal session (before I invoked "screen -x") but it won't help either.
What's going on here? Can somebody point me in the right direction?
FYI: I run Debian 6 on "A" and Mint LMDE 2012.4 on "B".