delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/12/15:11:03

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
To: cygwin AT cygwin DOT com
From: peter waltman <pwaltman AT eecs DOT tufts DOT edu>
Subject: Re: how can I set $REMOTEHOST ( so I can set $DISPLAY with sshd w\X11 forwarding)
Date: Thu, 12 Aug 2004 19:08:00 +0000 (UTC)
Lines: 82
Message-ID: <loom.20040812T210646-97@post.gmane.org>
References: <loom DOT 20040807T035049-115 AT post DOT gmane DOT org> <41150C47 DOT 6030900 AT alltel DOT net> <loom DOT 20040807T232016-729 AT post DOT gmane DOT org> <41154E0F DOT C0D8915F AT dessent DOT net> <Pine DOT GSO DOT 4 DOT 58 DOT 0408081343390 DOT 4727 AT slinky DOT cs DOT nyu DOT edu> <41178871 DOT 7EA331CA AT dessent DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: main.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 209.6.159.63 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8)
X-IsSubscribed: yes

Brian Dessent <brian <at> dessent.net> writes:

> 
> Igor Pechtchanski wrote:
> 
> > > It could be that if DISPLAY is set before you run ssh -X then ssh won't
> > > change it.  Try unsetting DISPLAY first.
> > 
> > This is wrong.  "ssh -X/-Y" will not enable X11 forwarding *unless*
> > DISPLAY is set in the local shell.
> 
> Ahh, I should read the man page more often.  I knew there was some
> relation between setting $DISPLAY before invoking ssh -X, but I guess
> those neurons were crossed.
> 
> Brian
> 
> 

there are 2 configurations when I'm ssh'ing into the machine.

1 - I use the windows version of the ssh2 client from www.ssh.com.  X11
tunneling is a feature which you can either enable or disable (enabled on my
machine).  the x-server is the pc-xware x-server.  there is no problem when I
ssh into any of the other server's on my school's network, but I can't determine
what the local $DISPLAY var is set to.

2 - using another machine with cygwin, I use the startxwin.bat script to start
the xserver and open a window with a bash shell prompt in it.  again, I have no
issue with X11 being tunneled if I ssh into any of the other unix servers on our
shool's network.  the local $DISPLAY var for the cygwin client is set to
localhost:0.

Both configurations have the same problem where X11 apps launched from the
client's shell get launched and opened under the x-server running on the machine
running the cygwin sshd daemon (also launched using the startxwin.bat script).


I believe this is the pertinent section of the sshd_config file:

    #AllowTcpForwarding yes
    #GatewayPorts no
    X11Forwarding yes
    X11DisplayOffset 10
    X11UseLocalhost yes
    #PrintMotd yes
    #PrintLastLog yes
    #TCPKeepAlive yes
    #UseLogin no
    UsePrivilegeSeparation yes
    #PermitUserEnvironment no
    #Compression yes
    #ClientAliveInterval 0
    #ClientAliveCountMax 3
    #UseDNS yes
    #PidFile /var/run/sshd.pid
    #MaxStartups 10

and perms 

$ ls -al /etc/sshd_config
-rwxr-xr-x+   1 eecsexec Domain U     2485 Aug  4 17:29 /etc/sshd_config

Additional info about my setup, the server (grad107m) is part of a windows
domain and is running windows XP professional.  the account I use to log in is
not the machine admin, though the machine admin account was used to install
cygwin.  The domain accts and groups had to be added post-install using the

mkpasswd -l -d > /etc/passwd

and 

mkgroup -l -d > /etc/group

commands.

thanks for any ideas or suggestions,

Peter





--
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