From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LzYrW-0006bY-5w for garchives@archives.gentoo.org; Thu, 30 Apr 2009 16:11:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0CD8E0215; Thu, 30 Apr 2009 16:11:47 +0000 (UTC) Received: from mail-ew0-f165.google.com (mail-ew0-f165.google.com [209.85.219.165]) by pigeon.gentoo.org (Postfix) with ESMTP id 9CD8AE0215 for ; Thu, 30 Apr 2009 16:11:47 +0000 (UTC) Received: by ewy9 with SMTP id 9so1784973ewy.34 for ; Thu, 30 Apr 2009 09:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=c+zy5ZrUFlytaGks4vImcUDCIAXLsMj4MaTJDSc4GMI=; b=whNIQyhzEaMYxoNXhVAQhqFxuy7jiGpMlHQnWF6NUT7e4aBXMZbonRVr0fMimscExJ HE5NgsmhWoVQDxZKGKmwU5S2xpsPWI77FEYRmViKZ/XGZscNNHFjO5nvn7R6lOrHrEst RIykRSL+Zuk7xKNV0Q6qgNHGQpyiGMYMKJAPU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=InZ3iw2U3bA8hR2f+zitkyUnzw2Oh/dKgSGfLu8BiPC4sYKTK6GhMUx5gS4KVdL/D7 iMzbW972e/UuErSlzr9uvXmd5Z53SFvYLodwrP8JwZkFCE/navuRj5AWSOTw2sy5yBcE +XQL9pBF7a3MYQV1zPDA+voxrs9DsuB+SdIvs= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.210.37.16 with SMTP id k16mr6950740ebk.15.1241107906954; Thu, 30 Apr 2009 09:11:46 -0700 (PDT) In-Reply-To: <49bf44f10904300859n1ef55ae1l8f97d97335f49089@mail.gmail.com> References: <49bf44f10904240801x2f5e4236v16c297859cc5c9d7@mail.gmail.com> <49bf44f10904300859n1ef55ae1l8f97d97335f49089@mail.gmail.com> Date: Thu, 30 Apr 2009 13:11:46 -0300 Message-ID: <60a795cd0904300911t45a21a87ne2abff72defa453f@mail.gmail.com> Subject: Re: [gentoo-user] Re: X-forwarding fails with "Invalid MIT-MAGIC-COOKIE-1 key" From: Alejandro To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=0015174c1422ec347b0468c7f3c5 X-Archives-Salt: 05e7099f-dfe7-4407-886d-e28c0352a861 X-Archives-Hash: ba80f215c2d7bba572ba04be5eef9553 --0015174c1422ec347b0468c7f3c5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/4/30 Grant > >> 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: > >> > >> I have: > >> > >> # cat /etc/ssh/sshd_config | grep X11Forwarding > >> X11Forwarding yes > >> > >> Does anyone know how to fix this? > > > > First, ssh to the box without X forwarding and: > > > > rm ~/.Xauthority > > rm ~/.ICEauthority > > logout > > > > Then try to ssh again with X forwarding enabled. It should work. > > 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? > > - Grant > > You also need ForwardX11 yes in your client configuration. Try ssh -v to get more output. --0015174c1422ec347b0468c7f3c5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2009/4/30 Grant <emailgrant@gmail.com>
>> X-forwarding used to work for me but I haven't used it in a wh= ile 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 for= warding.
>> Xlib: connection to "localhost:10.0" refused by server >> Xlib: Invalid MIT-MAGIC-COOKIE-1 key
>> Cannot open display:
>>
>> I have:
>>
>> # cat /etc/ssh/sshd_config | grep X11Forwarding
>> X11Forwarding yes
>>
>> Does anyone know how to fix this?
>
> First, ssh to the box without X forwarding and:
>
> =A0rm ~/.Xauthority
> =A0rm ~/.ICEauthority
> =A0logout
>
> Then try to ssh again with X forwarding enabled. =A0It should work.
Unfortunately I still get the same error. =A0I'll try to put together a= n
xauth command, but does anyone know what happened here? =A0Usually you
just enable X11Forwarding and you can use it right?

- Grant


You also need ForwardX11 yes in your client c= onfiguration. Try ssh -v to get more output.
--0015174c1422ec347b0468c7f3c5--