delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/03/21:09:02

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?windows-1252?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT 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 DOT 64091 DOT qmail AT web26114 DOT mail DOT ukl DOT yahoo DOT com>
Mime-Version: 1.0
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 AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019