public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: X-forwarding fails with "Invalid  MIT-MAGIC-COOKIE-1 key"
Date: Fri, 1 May 2009 07:15:17 -0700	[thread overview]
Message-ID: <49bf44f10905010715j72720a89p93e1ff11a417818c@mail.gmail.com> (raw)
In-Reply-To: <D5E9654F-4EA7-4F7D-A8C4-3ADE4C3FE374@stellar.eclipse.co.uk>

>>>> X-forwarding used to work for me but I haven't used it in a while and
>>>> now
>>>> I get:
>>>>
>>>> Warning: untrusted X11 forwarding setup failed: xauth key data not
>>>> generated
>>>> Warning: No xauth data; using fake authentication data for X11
>>>> forwarding.
>>>> Xlib: connection to "localhost:10.0" refused by server
>>>> Xlib: Invalid MIT-MAGIC-COOKIE-1 key
>>>> Cannot open display:
>>>>
>>>> ...
>>
>> Unfortunately I still get the same error.  I'll try to put together an
>> xauth command, but does anyone know what happened here?  Usually you
>> just enable X11Forwarding and you can use it right?
>
> Hi,
>
> I seem to have missed a couple of posts in this thread.
>
> Have you got xauth installed? When I set up a new machine recently there was
> a missing dependency - I _think_ it was xauth. I installed a base system +
> knode + mozilla. I never installed X11 explicitly, as I never log into this
> machine locally, only use a couple of X11 apps remotely (because those
> aren't available on my Mac). I'm not sure if X11 itself was installed or
> only some X11~ish libraries, but there was definitely a  dependency missing
> as a result of the way I installed. Unfortunately I didn't file a bug.
>
> Secondly, when you ssh in, you need to use `ssh -Y hostname` in order to
> enable ssh forwarding.
>
> Hope these observations are not unhelpful,
>
> Stroller.

Thanks everyone, but I still get the same error.  On the client I
added to /etc/ssh/ssh_config:

Host *
ForwardAgent yes
ForwardX11 yes

and I deleted ~/.Xauthority and ~/.ICEauthority.  On the server I
added to /etc/ssh/sshd_config:

X11Forwarding yes

and restarted sshd.  I get:

$ ssh -Y 192.168.10.1
The authenticity of host '192.168.10.1 (192.168.10.1)' can't be established.
RSA key fingerprint is.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts
(/home/grant/.ssh/known_hosts).
Password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Fri May  1 07:10:12 PDT 2009 from 192.168.10.2 on ssh
$ gimp
Xlib: connection to "localhost:10.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Cannot open display:

Should I reboot?

- Grant



  reply	other threads:[~2009-05-01 14:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24 15:01 [gentoo-user] X-forwarding fails with "Invalid MIT-MAGIC-COOKIE-1 key" Grant
2009-04-24 18:54 ` Wyatt Epp
2009-04-25 17:25   ` Grant
2009-04-25 17:59     ` Alan McKinnon
2009-04-25 17:56 ` Mike Kazantsev
2009-04-26 12:09 ` pk
2009-04-27 17:52 ` [gentoo-user] " Nikos Chantziaras
2009-04-30 15:59   ` Grant
2009-04-30 16:11     ` Alejandro
2009-04-30 16:17       ` Denis
2009-04-30 16:32     ` Stroller
2009-05-01 14:15       ` Grant [this message]
2009-05-01 15:00         ` Francesco Talamona
2009-05-01 15:05           ` Grant
2009-05-01 15:07             ` Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49bf44f10905010715j72720a89p93e1ff11a417818c@mail.gmail.com \
    --to=emailgrant@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox