delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/18/21:25:16

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; q=
dns; s=default; b=xqNDRDAbRzwnawZv3hkhhHiy9/hi2Jne2iPrMEu2IZ4spJ
hQ4bZ7jmqQJu4uMKAevPZFW+0VTOV7jCGhYZrwlZ4DIJ6C8lYOvyfE9gpKiLJ2IK
ZETlgMQAYEgFTCc8ZaMpRhFzI2XLQmTT/zX/AsDBV1EHAIEC41SuXxzZLkiyk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; s=
default; bh=5H6wWvJZYIPdEvK4mJgQxohiFDo=; b=rTRnmUzzuxKv2g1WvxRN
CH/3mJ43ND9vyRFWgeBrpZ1vmrJTuDLSu9NDXgERGpdIFQdvXXO+t/iXkIuW1v63
QO/10slQP8JC0UBuDn8vK8yDs/jBLcpb2pwsqAELBLg4FHsd86hD/TbZI/InsvDz
lsjmkDRCvVjYE66Wuoa/RVM=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,SCAM_SUBJECT,SPF_NEUTRAL,URI_HEX autolearn=no version=3.3.2
X-HELO: sam.nabble.com
Date: Tue, 18 Mar 2014 18:24:57 -0700 (PDT)
From: PolarStorm <developer AT clinicsearch DOT com>
To: cygwin AT cygwin DOT com
Message-ID: <1395192297365-107203.post@n5.nabble.com>
In-Reply-To: <5307BB89.80405@cse.yorku.ca>
References: <5307BB89 DOT 80405 AT cse DOT yorku DOT ca>
Subject: Re: Silently configure sshd fails via system account
MIME-Version: 1.0

Paul Griffith wrote
> ...
> /usr/bin/ssh-host-config --yes --cygwin ntsec --user cyg_server --pwd blah
> ...

Just a few things...

1) Don't do that (manually). 
First of all, "ntsec" is deprecated. Second, there are a lot of strange
issues when 
using "--yes", just answer the questions manually, especially since you
don't need 
all those keys just to have ssh work. 

2) Make sure you run the ssh-host-config from an "administrator: cygwin
shell.

3) Check your /etc/sshd-config for: "UsePrivilegeSeparation sandbox" which
is 
the new default. The ssh-host-config script has a bug on line 169 that
attempts 
to set this to "no", but where the regex fails. (I told people in  THIS
<http://cygwin.1069669.n5.nabble.com/CSIH-SSH-setup-script-problems-on-W81-64-tp106953.html>  
nabble post, but I 
don't think it ever reached the main mailing list.)

4) The sshd user pas-wor-d is set to expire by default after 42 days, in
Windows 8.1. 
Fix it if you're using that.






--
View this message in context: http://cygwin.1069669.n5.nabble.com/Silently-configure-sshd-fails-via-system-account-tp106607p107203.html
Sent from the Cygwin list mailing list archive at Nabble.com.

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