X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Date: Wed, 22 Dec 2010 19:50:24 +0100
From: David Sastre <d.sastre.medina@gmail.com>
To: cygwin@cygwin.com
Subject: Re: problem with sshd
Message-ID: <20101222185024.GA4970@jethro.local.lan>
References: <AANLkTinOHVgUQZ=UtAm7Pw4vxCiww7SAR4K1-LVYNkhz@mail.gmail.com> <iesh41$6ha$1@dough.gmane.org> <AANLkTimDhgQutVsjAFJS_zfJPusMjxpjC0of1vPJa9Dh@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/"
Content-Disposition: inline
In-Reply-To: <AANLkTimDhgQutVsjAFJS_zfJPusMjxpjC0of1vPJa9Dh@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
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

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 22, 2010 at 01:17:11PM +0300, Vasya Pupkin wrote:
> On Wed, Dec 22, 2010 at 12:41 PM, Thorsten Kampe
> <thorsten@XXXXXXXXXXXXXXX> wrote:
http://cygwin.com/acronyms/#PCYMTNQREAIYR
> > * Vasya Pupkin (Wed, 22 Dec 2010 09:26:29 +0300)
> >> I have a problem running cygwin sshd. I often end up with a lot of
> >> bash processes running and eating memory while there are no single
> >> active ssh session. It happens when either connection lost or user
> >> closes connection without logging out, sshd process dies but bash
> >> remains in memory forever. Is it possible to prevent this? In all real
> >> unix environments this never happen, bash always dies when parent sshd
> >> exits.

You might want to enable TCPKeepAlive. It could, at a very least,
prevent disconnections without explicit user interaction.=20

$ grep -i keepalive /etc/ssh*config
/etc/ssh_config:TCPKeepAlive yes
/etc/sshd_config:TCPKeepAlive yes

Despite the man pages for ssh_config and sshd_config stating that it
is enabled by default, I had to explicity declare it to prevent ssh=20
connections _from_ a cygwin box to the outside from dying.
This was a while back, though.

Regards.

--=20
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB

--TB36FDmn/VVEgNH/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk0SSHAACgkQYX05bESLMevwCwCfUKsI+cmDOTdrFSRjSrMbJHKa
xBUAnj+b2OyMGMkWbjET2xIWk2aaNp74
=ErfB
-----END PGP SIGNATURE-----

--TB36FDmn/VVEgNH/--
