delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/08/22:07:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_MK
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Sat, 8 Dec 2012 22:07:18 -0500
Message-ID: <CAARFOs9DGXBUet8txodJ7wxM=_ERLznu2U16EiyrgP2Djx0Lvg@mail.gmail.com>
Subject: Openssh stops working after a few days (problem solved)
From: Mike Richardson <javaguy940 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

I was about to post this as a question on here, but I was able to
solve my problem. I post it here in case anyone else comes along and
has the same problem.

I'm running Windows Server 2008 R2 Enterprise.  I installed the latest
Cygwin/openssh package from scratch and everything runs fine for a few
days.
Then all of a sudden, I can't make any more connections to the ssh
server.  My first step is to restart the service in Windows, but I
receieve the following error:
"The CYGWIN sshd service on Local computer started and then stopped.
Some services stop automatically if they are not in use by other
services or programs."

I then examined the file /var/log/sshd.log and saw the following error message:
"Privilege separation user sshd does not exist"

I then examine the sshd account on Windows (which does exist). The
"Account is diabled" box was checked. I uncheck it, as well as check
the "Password never expires" checkbox which was before unchecked.
After I click ok, I get the following error message:
"The following error occured while attempting to save properties for
user sshd: The password does not meet the password policy
requirements.  Check the minimum password length, password complexity,
and password history requirements".

Next, I assign the windows account sshd a sufficiently complex
password using the windows gui.
Then I still get the same error "Privilege separation user sshd does not exist"

So I run the following commands:

mkpasswd -l > /etc/passwd
mkgroup -l > /etc/group

I then restart the windows service, and now everything works fine.
What I assume what happened is that the sshd account in windows
somehow became disabled.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019