Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Wed, 6 Aug 2003 10:42:57 +0300 Message-Id: <200308060742.h767gvhT032030@beta.mvs.co.il> From: "Ehud Karni" To: jeff_nokes AT yahoo DOT com Cc: cygwin AT cygwin DOT com Subject: Re: SSH session terminates with Ctl+C In-reply-to: <20030805231724.64407.qmail@web20416.mail.yahoo.com> (message from Jeff Nokes on Tue, 5 Aug 2003 16:17:24 -0700 (PDT)) Organization: Mivtach-Simon Insurance agencies Reply-to: ehud AT unix DOT mvs DOT co DOT il References: <20030805231724 DOT 64407 DOT qmail AT web20416 DOT mail DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 5 Aug 2003 16:17:24 -0700 (PDT), Jeff Nokes wrote: > > Here's my ssh -v output: [snip] > debug1: channel 0: request x11-req > debug1: channel 0: request shell > debug1: channel 0: open confirm rwindow 0 rmax 32768 > [jnokes AT row-cm jnokes]$ debug1: channel_free: channel 0: client-session, > nchannels 1 > Killed by signal 2. This line indicate kill on the local machine (Cygwin), see below. > debug1: Calling cleanup 0x4138d0(0x0) > debug1: Calling cleanup 0x41b2a0(0x0) > jnokes AT D-SJC-JNOKES ~ > $ > ********************************************* > > > Also, > I have a RH 7.2 box that I ssh to as well, and the same behavior occurs there > as well. Here is the output of that if you are interested: [snip] > debug1: channel 0: request shell > debug1: channel 0: open confirm rwindow 0 rmax 32768 > Last login: Fri Jul 25 17:57:35 2003 from d-sjc-jnokes.corp.ebay.com > [jnokes AT row-dev-02 jnokes]$ debug1: channel_free: channel 0: client-session, > nchannels 1 > Killed by signal 2. Same as above (local kill, i.e. Cygwin) > debug1: Calling cleanup 0x4138d0(0x0) > debug1: Calling cleanup 0x41b2a0(0x0) To check your report I did 2 ssh sessions. In the first I killed the remote (GNU/Linux sshd) the result is: debug1: channel_free: channel 0: port listener, nchannels 4 debug1: channel_free: channel 1: port listener, nchannels 3 debug1: channel_free: channel 2: port listener, nchannels 2 debug1: channel_free: channel 3: client-session, nchannels 1 Connection to 192.214.178.73 closed by remote host. Connection to 192.214.178.73 closed. debug1: Transferred: stdin 0, stdout 0, stderr 91 bytes in 34.8 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 2.6 debug1: Exit status -1 debug1: compress outgoing: raw data 1271, compressed 942, factor 0.74 debug1: compress incoming: raw data 1987, compressed 939, factor 0.47 In the second I killed the local ssh (by `kill -2' from another bash): debug1: channel_free: channel 0: port listener, nchannels 4 debug1: channel_free: channel 1: port listener, nchannels 3 debug1: channel_free: channel 2: port listener, nchannels 2 debug1: channel_free: channel 3: client-session, nchannels 1 Killed by signal 2. debug1: Calling cleanup 0x4138d0(0x0) debug1: Calling cleanup 0x41b2a0(0x0) debug1: compress outgoing: raw data 931, compressed 769, factor 0.83 debug1: compress incoming: raw data 1272, compressed 585, factor 0.46 Signal 2 is SIGINT (the one created by the INTR in stty, usually ^C), so it really seems that ^C is somehow caught by the local ssh. I repeat that I can not reproduce this bug under XP pro, neither with Cygwin console nor with rxvt window (cygwin1.dll, ssh same as yours). A half apology to readers of my previous mail. As you can see I use compression with ssh (I do it automatically - with a config file) so I omitted (in my mind) the possibility of not using it. Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:ehud AT unix DOT mvs DOT co DOT il Better Safe Than Sorry -----BEGIN PGP SIGNATURE----- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQE/MLGALFvTvpjqOY0RAsQXAJ9XjLJC0eDmfR+/CPwa3PbRCdVVyQCfQ1A5 nCO50CwnGD7yBQOgTfllLSw= =SbNA -----END PGP SIGNATURE----- -- 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/