delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/19/17:34:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 19 Aug 2004 17:33:53 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Christopher Cobb <ccobb AT email DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: sshd automatically close connection after successful login
In-Reply-To: <loom.20040819T231846-435@post.gmane.org>
Message-ID: <Pine.GSO.4.61.0408191732280.2589@slinky.cs.nyu.edu>
References: <41247EBA DOT 9040002 AT childresslaw DOT net> <20040819105720 DOT GA11920 AT cygbert DOT vinschen DOT de> <loom DOT 20040819T220405-166 AT post DOT gmane DOT org> <loom DOT 20040819T231846-435 AT post DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Thu, 19 Aug 2004, Christopher Cobb wrote:

> Christopher Cobb <ccobb <at> email.com> writes:
> 
> > Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> > 
> > > On Aug 19 05:19, Mike Skallas wrote:
> > > > I had this same problem when I re-installed cygwin today. Took me a good 
> > > > hour to figure out what the hell was going on.
> > > 
> > > Folks, does anybody of you actually *read* this mailing list or, FWIW,
> > > at least the package announcements?  This is the pointer to my OpenSSH
> > > 3.9p1-1 announcement from *yesterday*:
> > > 
> > > http://cygwin.com/ml/cygwin/2004-08/msg00633.html
> > > 
> > > *shaking head*
> > > Corinna
> > 
> > Thank you, Corinna, for pointing out this information:
> > 
> > "Thanks to an early bug report on the cygwin mailing list, I found that
> > you *must* add the -r option when starting the sshd daemon, if you want
> > to use privilege separation. ..."
> 
> I modified line 556 of ssh-host-config to be:
> 
> 	if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a "-D -r" -u
> sshd_server -w "${_password}" -e "CYGWIN=${_cygwin}"
> 
> Notice the -r.  
> 
> I restarted sshd, but I still get:
> 
>     $ ssh Administrator AT momtst5
>     Administrator AT momtst5's password: 
>     Connection to momtst5 closed.
> 
> The connection closes immediately as others have mentioned.
> 
> Is that the form of -r that you mean?

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

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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