Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Fri, 20 Aug 2004 10:12:34 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: sshd automatically close connection after successful login
Message-ID: <20040820081234.GI10590@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <41247EBA.9040002@childresslaw.net> <20040819105720.GA11920@cygbert.vinschen.de> <loom.20040819T220405-166@post.gmane.org> <loom.20040819T231846-435@post.gmane.org> <Pine.GSO.4.61.0408191732280.2589@slinky.cs.nyu.edu> <loom.20040820T000409-722@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <loom.20040820T000409-722@post.gmane.org>
User-Agent: Mutt/1.4.2i
Note-from-DJ: This may be spam

On Aug 19 22:07, Christopher Cobb wrote:
> Igor Pechtchanski <pechtcha <at> cs.nyu.edu> writes:
> > Yes, but you have to reinstall the sshd service, not just restart sshd, 
> > i.e.,
> > 
> > cygrunsrv -E sshd; cygrunsrv -R sshd; ssh-host-config; cygrunsrv -S sshd

I just added resp. removed the -r from the appropriate registry key 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Parameters
and restarted sshd.

> Yes, that's what I did before, and I did it again just to make sure, and I still
> get an immediate "Connection to xxx closed." after typing my password.
> 
> That's the right -r isn't it?  Is there something else that needs to be done?

Yes, sure.  It's not helpful to see it failing and then do nothing else.
What does the logs show?  Did you try starting sshd in debug mode from
the command line (Dont' forget to change ownership of /etc/ssh* and
/var/empty)?  Talking about reading the mailing list:
http://cygwin.com/ml/cygwin/2004-08/msg00625.html


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

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

