Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: X-forwarding fails with "Invalid MIT-MAGIC-COOKIE-1 key"
Date: Fri, 01 May 2009 14:15:19
Message-Id: 49bf44f10905010715j72720a89p93e1ff11a417818c@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: X-forwarding fails with "Invalid MIT-MAGIC-COOKIE-1 key" by Stroller
1 >>>> X-forwarding used to work for me but I haven't used it in a while and
2 >>>> now
3 >>>> I get:
4 >>>>
5 >>>> Warning: untrusted X11 forwarding setup failed: xauth key data not
6 >>>> generated
7 >>>> Warning: No xauth data; using fake authentication data for X11
8 >>>> forwarding.
9 >>>> Xlib: connection to "localhost:10.0" refused by server
10 >>>> Xlib: Invalid MIT-MAGIC-COOKIE-1 key
11 >>>> Cannot open display:
12 >>>>
13 >>>> ...
14 >>
15 >> Unfortunately I still get the same error.  I'll try to put together an
16 >> xauth command, but does anyone know what happened here?  Usually you
17 >> just enable X11Forwarding and you can use it right?
18 >
19 > Hi,
20 >
21 > I seem to have missed a couple of posts in this thread.
22 >
23 > Have you got xauth installed? When I set up a new machine recently there was
24 > a missing dependency - I _think_ it was xauth. I installed a base system +
25 > knode + mozilla. I never installed X11 explicitly, as I never log into this
26 > machine locally, only use a couple of X11 apps remotely (because those
27 > aren't available on my Mac). I'm not sure if X11 itself was installed or
28 > only some X11~ish libraries, but there was definitely a  dependency missing
29 > as a result of the way I installed. Unfortunately I didn't file a bug.
30 >
31 > Secondly, when you ssh in, you need to use `ssh -Y hostname` in order to
32 > enable ssh forwarding.
33 >
34 > Hope these observations are not unhelpful,
35 >
36 > Stroller.
37
38 Thanks everyone, but I still get the same error. On the client I
39 added to /etc/ssh/ssh_config:
40
41 Host *
42 ForwardAgent yes
43 ForwardX11 yes
44
45 and I deleted ~/.Xauthority and ~/.ICEauthority. On the server I
46 added to /etc/ssh/sshd_config:
47
48 X11Forwarding yes
49
50 and restarted sshd. I get:
51
52 $ ssh -Y 192.168.10.1
53 The authenticity of host '192.168.10.1 (192.168.10.1)' can't be established.
54 RSA key fingerprint is.
55 Are you sure you want to continue connecting (yes/no)? yes
56 Failed to add the host to the list of known hosts
57 (/home/grant/.ssh/known_hosts).
58 Password:
59 Warning: No xauth data; using fake authentication data for X11 forwarding.
60 Last login: Fri May 1 07:10:12 PDT 2009 from 192.168.10.2 on ssh
61 $ gimp
62 Xlib: connection to "localhost:10.0" refused by server
63 Xlib: Invalid MIT-MAGIC-COOKIE-1 key
64 Cannot open display:
65
66 Should I reboot?
67
68 - Grant

Replies

Subject Author
[gentoo-user] Re: X-forwarding fails with "Invalid MIT-MAGIC-COOKIE-1 key" Francesco Talamona <francesco.talamona@××××.eu>