delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/21/10:35:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: Arthur Hon Sey Liu <arthurl AT cse DOT unsw DOT EDU DOT AU>
To: cygwin AT cygwin DOT com
Date: Sun, 22 Sep 2002 00:35:31 +1000 (EST)
cc: pechtcha AT cs DOT nyu DOT dot DOT edu, <buschelm AT mcs DOT anl DOT gov>
Subject: Re: ssh -X Protocol 2 fails to pass Ctrl-C
Message-ID: <Pine.LNX.4.44.0209220004540.11505-100000@banjo01.orchestra.cse.unsw.EDU.AU>
MIME-Version: 1.0

Hello,

On Wed, 31 Jul 2002, Kristopher R. Buschelman wrote:

> When I use X11 forwarding and ssh to a linux machine under protocol 2,
> Ctrl-C is not properly passed through to the remote machine, and my ssh
> session is terminated.  The error message is:
>     Killed by signal 2.

I have this problem as well.

On Thu, 1 Aug 2002, Igor Pechtchanski wrote:

> I'm not able to reproduce this problem.  I use cygwin 1.3.12-2 on Win2k,
> `ssh -V`="OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090604f".  I
> tried to connect to a RedHat Linux 7.3, `uname -a`="Linux
> floodgate.internal.net 2.4.18-3 #1 Thu Apr 18 07:31:07 EDT 2002 i586
> unknown" using "ssh -2 -X floodgate.internal.net".  Ctrl-C is passed
> through with no problems to the bash prompt, as well as to cat and ls.

I am able to reproduce this problem running cygwin 1.3.12 on WinXP and
Win2k.

The problem seems to be occuring when all of the following conditions are
met:

- Must be running under plain bash.exe or cmd.exe
- Must be using ssh protocol v2 (via -2, or set in ssh_config or
  ~/.ssh/config)
- X11 forwarding must be enabled (either via -X, or in ssh_config or
  ~/.ssh/config)
- DISPLAY variable must be set

The problem:
 - ssh is killed regardless of the state of the remote connection - it
   seems to be local. ssh is killed when ctrl-c is pressed.
 - does not occur when ssh is run under xterm or rxvt, even if TERM is set
   to cygwin.
 - occurs even when remote machine's sshd has "X11Forwarding no"  set in
   sshd_config.
 - is independent of the authentication method.

Any ideas?

Cheers,

Arthur

--
Arthur Hon Sey Liu <arthurl AT cse DOT unsw DOT edu DOT au>
School of Computer Science and Engineering
The University of New South Wales
Sydney, Australia



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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