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 1LztWJ-0006d9-L8 for garchives@archives.gentoo.org; Fri, 01 May 2009 14:15:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E24A5E04F6; Fri, 1 May 2009 14:15:17 +0000 (UTC) Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by pigeon.gentoo.org (Postfix) with ESMTP id C4955E04F8 for ; Fri, 1 May 2009 14:15:17 +0000 (UTC) Received: by yw-out-1718.google.com with SMTP id 5so1890047ywm.46 for ; Fri, 01 May 2009 07:15:17 -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 :content-transfer-encoding; bh=j9kVy1eNz/J0KClxlGyTEOIeMVZu1XtZ/volwgH+EsU=; b=YDbbNWYspMAMQL0Gb16RfU+PnarINFu3wDOsgcXEYsfgGB9SK12Zg3xsVgy1cXf6Hn vavSHeM+tsATYbXXJhrQGJIBjh0Tkdtmjcgle86wZtLs96xuy2lqW4dQF3VClWDOS1Xz yoJT/yVzIwn5tsUwtZux9KY1n4EXnp5aWGv2A= 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:content-transfer-encoding; b=pvZavYuX4t1vRpu9zjTaT8/3OaxPyenJDRgkGSd3HE6S7SEKRKJo/jmkXzMvFg0H84 Sxf9lF2896jQojyVOUTuy+mliRg/tIAThesoOhTUot3wXZL1W6Gcs8k7jQqUWrdNrlAq J85woEbhW09BUElsIdoT06aRpCXEy103cHpfk= 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.90.101.17 with SMTP id y17mr1534058agb.72.1241187317400; Fri, 01 May 2009 07:15:17 -0700 (PDT) In-Reply-To: References: <49bf44f10904240801x2f5e4236v16c297859cc5c9d7@mail.gmail.com> <49bf44f10904300859n1ef55ae1l8f97d97335f49089@mail.gmail.com> Date: Fri, 1 May 2009 07:15:17 -0700 Message-ID: <49bf44f10905010715j72720a89p93e1ff11a417818c@mail.gmail.com> Subject: Re: [gentoo-user] Re: X-forwarding fails with "Invalid MIT-MAGIC-COOKIE-1 key" From: Grant To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c7f835a0-35af-4602-9ab0-8ccebda5b67f X-Archives-Hash: 4d13e750bdff337d2cbcec2354eae37e >>>> 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. =A0I'll try to put together an >> xauth command, but does anyone know what happened here? =A0Usually 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 th= is > 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 =A0dependency mis= sing > 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