From owner-freebsd-questions@FreeBSD.ORG Mon Jan 26 05:35:34 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40E521065670 for ; Mon, 26 Jan 2009 05:35:34 +0000 (UTC) (envelope-from the.sk89q@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.180]) by mx1.freebsd.org (Postfix) with ESMTP id F2E1E8FC08 for ; Mon, 26 Jan 2009 05:35:33 +0000 (UTC) (envelope-from the.sk89q@gmail.com) Received: by el-out-1112.google.com with SMTP id r27so1554713ele.13 for ; Sun, 25 Jan 2009 21:35:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=LYdwUCWRMlWe0rjrq+iCiFkpYcIZTwVIT0FIHz7ZEZs=; b=GYyqkpOWRUMp4Pr0STWRRPcjDKHceK47eWySkBgR9+3huPp+hEMPAcbDSSgEwZtajt qo2GXrX6C7r4hsxo98lxW6I4UyEQ4mHS7TKGzq9RyKs2qsyPF0XkMt5oagxw3TVsxeFW eBJB53V0MEPK97gQjCcBbc1clD5+0ItIDzY7Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=WuV00JTWd84xkt4hzdOLNSU0AlNKBBMLEzrrWy6igkc+uPioQU8ZGABcGKRNpjCVs4 dPa/k11WYZxQwk9Z5wwAZ0LX5sMUUHKUmtrqMmoHgkKvxtPKWqqaxOIjBpkiIgPZNu8E Osyciiit3PHT9fNajGcK0J+tCOAxXLVXZXpcc= MIME-Version: 1.0 Received: by 10.231.20.1 with SMTP id d1mr29677ibb.19.1232946544360; Sun, 25 Jan 2009 21:09:04 -0800 (PST) Date: Sun, 25 Jan 2009 21:09:04 -0800 Message-ID: <825770ac0901252109n14c9de4exec2fe3c1daed335b@mail.gmail.com> From: sk89q To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: X11 forwarding through SSH: Can't open display 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: Mon, 26 Jan 2009 05:35:34 -0000 Hello, I am using FreeBSD 6.2 and I have been trying to get X11 forwarding through SSH to work. I've gotten to the point where the environment variable "DISPLAY" is set, but I get a "Can't open display" error when I attempt to run an X application. The remote server in question does not have an X server install. In /etc/ssh/ssh_config, I have the following lines: X11Forwarding yes AllowTcpForwarding yes UseLogin no When I first tried logging in with `ssh -Xvvv user@host`, I got an error message stating that "xauth" could not be found. DISPLAY was not set and X11 was not forwarded. `sockstat -4 | grep sshd` didn't return any relevant entries. Looking at the strings of sshd, I noticed that it had a hard-coded path pointing to "/usr/X11/bin/xauth", so I made a hard link from "/usr/local/bin/xauth" to "/usr/X11/bin/xauth". Now, sshd can find xauth, and DISPLAY is properly set to "localhost:10.0". sockstat shows: USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 62372 7 tcp4 127.0.0.1:6010 *:*" However, running `xeyes` reports the error "Error: Can't open display: localhost:10.0". Right now, `ssh -Xvvv user@host` shows: debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-dd77LaQ9BG/xauthfile generate unix:0.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2>/dev/null Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. debug1: Requesting X11 forwarding with authentication spoofing. debug2: channel 0: request x11-req confirm 0 On the local end, I have tried connecting with PuTTY, ssh through Cygwin, and ssh on a Ubuntu system. I have also tried ssh -Y as well. Regards, sk89q