X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?UTF-8?B?UmVuw6kgQmVyYmVy?= Subject: Re: sshd: fork of unprivileged child failed Date: Sun, 04 Jun 2006 19:06:41 -0500 Lines: 66 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) In-Reply-To: OpenPGP: url=hkp://random.sks.keyserver.penguin.de X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 Robin Walker wrote: > --On 04 June 2006 16:27 -0500 Ren=C3=A9 Berber wrote: Please sanitize the responses, we don't want our e-mail addresses in the op= en. >> Robin Walker wrote: >> >>> I have a system with Cygwin sshd installed that refuses to accept >>> connections. sshd is running and listening on port 22. >>> >>> In the Windows Application Log there are, for each failed connection >>> attempt, entries of the form: >>> >>> sshd: PID xxxx: fatal: fork of unprivileged child failed. >> >> What is you configuration in respect to privilege separation? >=20 > UsePrivilegeSeparation yes Did you check if the rest of the configuration for using privilege separati= on was done (i.e. the creation of the unprivileged user sshd, the creation of = the /var/empty directory with owner SYSTEM and all access). The error message shows that the main sshd server is running but it cannot = spawn child processes, which it always does on a new connection (privilege or not= ) so the second process failure is the interesting part. The error message does= n't show anything from that second process. You could try changing that setting, sshd will spawn a second process but t= his time under user SYSTEM... if that works then we can narrow the possibilitie= s. To be more precise, from /usr/share/doc/openssh/README.privsep: "On Cygwin.= .. only the pre-authentication part of privsep is supported." So before auth = there is a process running under sshd and after the second process runs under SYS= TEM. That is why I would check if that user exists in Windows, in /etc/passwd, = and the part about /var/empty. >> And a few more details could be useful, version of Windows, >=20 > XP Pro, fully up to date. >=20 >> any special ssh configuration? >=20 > I have not configured anything. It used to work: now it doesn't. >=20 >> was sshd and users installed following the provided documentation? >=20 > To what provided documentation are you referring? /usr/share/doc/Cygwin/openssh.README and for WinXP the recommendation is on= ly to use ssh-host-config and ssh-user-config. --=20 Ren=C3=A9 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/