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

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
Date: Mon, 15 Nov 2004 13:58:09 -0600
From: Nick Wisniewski <nw AT physics DOT ucla DOT edu>
Subject: Re: Problems with ssh and tunnelling with cygwin 1.5.12
To: cygwin AT cygwin DOT com, cygwin-xfree AT cygwin DOT com
Message-id: <41990A51.2020703@physics.ucla.edu>
MIME-version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425
Note-from-DJ: This may be spam

Igor Pechtchanski wrote:
> On Fri, 12 Nov 2004, Nicholas Wisniewski wrote:
> 
>> Hello,
>>    I'm trying ssh and tunnel to various machines.  I can ssh just fine
>> without tunnelling (i.e. ssh user AT machine DOT net).  When I try to tell ssh
>> to tunnel (ssh -X user AT machine DOT net), it prompts me for my password, and
>> then hangs.
> 
> 
> This is an X-related issue, and as such should go to the cygwin-xfree
> list.  I'm redirecting my reply there -- please remove <cygwin at cygwin
> dot com> from further discussion.

I'm using Exceed as an X-windows client, not Xorg, so I don't think it 
is.  In any case, I thought that all ssh cared about was whether there 
was a DISPLAY set or not.


>>     When I look at the task manager, I see that sh.exe is taking up all of 
> 
> ^^^^^^
> 
>>     the available CPU. If I kill sh.exe from the task manager, ssh 
> 
> ^^^^^^
> 
>>     continues fine and I am connected and tunnelling. 
> 
> 
> Is this really sh.exe?  Can you check whether this sh.exe process is
> running before you start ssh (e.g., compare the outputs of "ps -ef" before
> and after "ssh -X")?
before
bash-2.05b$ ps -ef
      UID     PID    PPID TTY     STIME COMMAND
     Nick    2888       1 con  13:34:32 /usr/bin/bash
     Nick    4052       1 con  13:37:33 /usr/bin/bash
     Nick     236    4052 con  13:39:22 /usr/bin/ps

after
bash-2.05b$ ps -ef
      UID     PID    PPID TTY     STIME COMMAND
     Nick    2888       1 con  13:34:32 /usr/bin/bash
     Nick    4052       1 con  13:37:33 /usr/bin/bash
     Nick    3936    2888 con  13:40:16 /usr/bin/ssh
     Nick    4012    3936 con  13:40:25 /usr/bin/sh
     Nick     936    4052 con  13:40:29 /usr/bin/ps


> I don't recall any option that would make ssh start a shell on the local
> machine.  Are your ssh config files customized?  Are you running keychain,
> or autossh, or any other ssh-related scripts?

I just uninstalled everything.  I reinstalled nothing but the default 
packages and open-ssh.  I'm running /usr/bin/ssh out of the box with no 
modifications.  As you can see from the ps, sh is being started by ssh.

As I mentioned before, if I kill sh.exe from the task manager, 
everything works fine (i.e. it finishes logging in and I can display 
things from the remote machine).


> Are you running Cygwin's ssh?  Are you running /usr/bin/ssh, or is ssh
> aliased to anything?  Is your DISPLAY set when you run ssh.exe?  Have you
> tried trusted X forwarding ("ssh -Y")?

I'm running /usr/bin/ssh. ssh -Y has the same symptoms as ssh -X

bash-2.05b$ echo $DISPLAY
localhost:0.0



>>    I'm running XP pro, service pack 2.  I've turned off the XP firewall and
>> Sophos virus programs and still get the same behaviour.  The same behavir
>> happens on this machine with cygwin 1.5.11 as well.
>> 
>> 
>>     Has anybody ever seen this before? 
> 
> 
> This doesn't sound like anything that's been reported before.
> 	Igor

Nick



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