delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/29/15:30:17

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Friendly neighborhood Cygwin user <stupendous DOT badass AT gmail DOT com>
Subject: X-client on Cygwin/XP, X-server on 'Nix
Date: Sat, 29 Apr 2006 19:26:03 +0000 (UTC)
Lines: 45
Message-ID: <loom.20060429T205841-208@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello!

I have sshd, ssh, and X11 set up on my XP laptop such that I can "ssh -Y"
into linux boxes and run programs there while sitting at my laptop.

I would like also to do the reverse:  To "ssh -X" into my laptop from a
unix box and to run x-clients on my laptop while sitting at the unix
workstation.  I can ssh into my laptop, but I cannot get x-forwarding
working in this direction.

When I try to start an x-client on my laptop from a unix box, I get the
following error:

$ xeyes
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).

I have made sure that the line "X11Forwarding yes" is in /etc/sshd_config.
I also  tried to create a file called "~/.ssh/.config" with the line
"ForwardX11=yes" in it.

While SSHed into my laptop, I can see that $DISPLAY has been appropriately
set:
$ echo $DISPLAY
localhost:10.0

as opposed to, when logged in locally,
$ echo $DISPLAY
127.0.0.1:0.0

I can also see that 'localhost' is resolved correctly ("MACHINE2048" is
my laptop):
$ ping localhost
Pinging MACHINE2048 [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

When I run xhost, everything appears to be correct:
$ xhost
access control enabled, only authorized clients can connect
INET:MACHINE2048
INET:localhost
INET:MACHINE2048.netname.net <-- Actual netname removed
LOCAL:

I'm stumped.  Any ideas?  (Thanks in advance!)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019