This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ssh -X Protocol 2 fails to pass Ctrl-C


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@cse.unsw.edu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]