X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?windows-1252?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: SSH Connection Still Active
Date:  Fri, 03 Feb 2006 20:08:31 -0600
Lines: 31
Message-ID: <ds12av$nis$1@sea.gmane.org>
References:  <20060203214911.64091.qmail@web26114.mail.ukl.yahoo.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=windows-1252
Content-Transfer-Encoding:  quoted-printable
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
In-Reply-To: <20060203214911.64091.qmail@web26114.mail.ukl.yahoo.com>
OpenPGP: url=ldap://keyserver.pgp.com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

O. Olson wrote:
> Hi,
> 	I don=92t know much about networking =96 so if there is
> something obvious with this, let me know.=20
> 	When I ssh from Cygwin to another machine, and then
> close the Cygwin window without logging out, my
> connection to the machine still remains active =96 by
> this second part I mean that after I have closed the
> ssh window if I =93netstat=94 =96 I see the state of the
> connection as =93ESTABLISHED=94. It still remains the same
> state even after many hours.=20

If the other computer is running Windows (non server) then yes, it's normal.
The connection will stay like that until rebooted.

If the other computer is running Unix (choose your flavor:
Linux/Solaris/HP-UX/etc.) or Windows Server x then it's not normal, it shou=
ld
stay for a while and then close.

There's parameters that you can set in /etc/sshd_config that will allow the
server to detect stale connections:

ClientAliveInterval 60
ClientAliveCountMax 3

I have not tried it.
--=20
Ren=E9 Berber


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

