Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Christopher Cobb Subject: Re: sshd automatically close connection after successful login Date: Thu, 19 Aug 2004 21:21:29 +0000 (UTC) Lines: 45 Message-ID: References: <41247EBA DOT 9040002 AT childresslaw DOT net> <20040819105720 DOT GA11920 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 162.70.244.40 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8) X-IsSubscribed: yes Christopher Cobb email.com> writes: > > Corinna Vinschen 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? -- 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/