From owner-freebsd-questions@FreeBSD.ORG Thu Feb 28 18:41:19 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6C77106566B for ; Thu, 28 Feb 2008 18:41:18 +0000 (UTC) (envelope-from punosevac@math.arizona.edu) Received: from smtp224.math.arizona.edu (smtp224.math.arizona.edu [128.196.224.202]) by mx1.freebsd.org (Postfix) with ESMTP id B7FF68FC16 for ; Thu, 28 Feb 2008 18:41:18 +0000 (UTC) (envelope-from punosevac@math.arizona.edu) Received: from Debian-exim by smtp224.math.arizona.edu with local-bsmtp (Exim 4.63) (envelope-from ) id 1JUngz-0006DE-Ht for questions@freebsd.org; Thu, 28 Feb 2008 11:41:18 -0700 Received: from 71-220-154-220.tcsn.qwest.net ([71.220.154.220] helo=.domain.actdsltmp) by smtp224.math.arizona.edu with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JUngz-0006D2-Cb; Thu, 28 Feb 2008 11:41:17 -0700 Message-ID: <47C7004A.9000806@math.arizona.edu> Date: Thu, 28 Feb 2008 11:41:14 -0700 From: Predrag Punosevac User-Agent: Thunderbird 2.0.0.6 (X11/20070916) MIME-Version: 1.0 To: questions@freebsd.org, Denny White References: <20080228091720.GA20265@bubbhasbox.cableone.net> <47C68301.5000405@math.arizona.edu> <20080228103538.GB20369@bubbhasbox.cableone.net> In-Reply-To: <20080228103538.GB20369@bubbhasbox.cableone.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACL-Warn: The HELO/EHLO greeting .domain.actdsltmp is invalid X-Outgoing-Spam-Score: -2.0 (--) Cc: Subject: Re: XForwarding problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 18:41:19 -0000 Denny White wrote: > -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > > On Thu, Feb 28, 2008 at 02:46:41AM -0700, Predrag Punosevac sez: > >> Denny White wrote: >> >> >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>> >>> For the last couple of days I've tried everything I can think of to >>> make XForwarding work with ssh. As per the FAQ, I have set it like so: >>> >>> >>> In sshd_config >>> >>> X11Forwarding yes >>> >>> >>> In ssh_config >>> >>> ForwardAgent yes >>> ForwardX11 yes >>> >>> I can use it passably well in one direction from a box across the >>> room to the one I do most of my work on. But, when I try it from >>> this box to the one across the room, I get the xauth error message >>> along with all typed characters doubled on the screen. I went ahead >>> anyway and typed 'display somefile.jpg' just to see what I'd get & >>> got this: >>> >>> Xlib: connection to "localhost:10.0" refused by server >>> Xlib: Invalid MIT-MAGIC-COOKIE-1 key >>> display: unable to open X server `localhost:10.0'. >>> >>> I've read the man page on xauth(1) and experimented with its >>> commands. I've even wiped out the .Xauthority file on both boxes >>> and restarted X, to no avail. Possibly I should mention too, that >>> I boot on both boxes to a xdm login. I don't know if that would >>> have any bearing on the problem or not. Thanks for any help I >>> can get on this. >>> >> What happens when you try to do the following? >> >> >> Try to do remote login with as follows >> ssh -Y username@remotehost.dns >> > > I get this: > > Warning: No xauth data; using fake authentication data for X11 > forwarding. > > And, everything I type at the prompt is doubled. > > >> you should be now in the shell on the remote host >> >> try to start x client like xdvi or xfig or something like emacs by >> typing xdvi >> >> If xdvi pops up that means that the client is running on the remote host >> but it is displayer on the local X server >> > > Okay, if after getting in I try to open something like xzgv, I get: > > Xlib: connection to "localhost:10.0" refused by server > Ok you do have a permission problem Read carefully man pages for sshd_config file . You need to uncomment few lines for X tunneling. You can also look at the "Secure Architectures with OpenBSD" section about OpenSSH. I do not think that the problem is with X server though. Best, Predrag > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > > Gtk-WARNING **: cannot open display: localhost:10.0 > > Like I said earlier, I read the man page too on xauth & tried > sending > > xauth extract - $DISPLAY | rsh otherhost xauth merge - > > but it doesn't appear to help. I still get the error messages > and double typed characters. > >