delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/07/12:35:14

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:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=UaiW1KxyvwYS+KZ8qGUHeLqzpRfwub1vA6f83zl+6z5BNVMYLinkl
tnZnggF5RsdjSS7E7bjW4rj7e2SHEB329Y9c6tX90yhDyblvtLtiz+LzEhC3jMAV
37N1ghvZGzQzLi0u7FrAWR09QkdL2MyXnvGECbNV9XzX/C9wCgRgRo=
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:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=u20Rtg6uG08yDCqxvEGLJgcrqC4=; b=SrykbSZkuYg6EMABWD8GvuienUNF
b/P8/8TO1niYirGawlbFmgBnVjBMLUPyu8a4HvijPRnKv4/QLbR0s5yUPoXHe6CJ
AIyMMHmW0JPrFlMVAOsIL6MTDCa1UqbBccEhNJ6hQ5cgAU+1L3p0N/luIvHeRX6G
8wCQNM2/zEuE4fI=
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=-101.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=corinna, Vinschen, vinschen, Maintainer
X-HELO: calimero.vinschen.de
Date: Thu, 7 Jan 2016 18:34:51 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: sshd - ssh-host-config =?utf-8?Q?uses_?= =?utf-8?Q?incorrect_username_for_setup=E2=80=8F?=
Message-ID: <20160107173451.GF20447@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <DUB131-W58FF55D4021C63320241B690FC0 AT phx DOT gbl>
MIME-Version: 1.0
In-Reply-To: <DUB131-W58FF55D4021C63320241B690FC0@phx.gbl>
User-Agent: Mutt/1.5.24 (2015-08-30)

--AH+kv8CCoFf6qPuz
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec 29 09:08, Brian Mc George wrote:
> Hi,
>=20
> I am using EC2 and need to automate the configuration of sshd
>  at instance launch. If I manually rdp into the machine and execute:
> ssh-host-config --yes --privileged --user cyg_server --pwd ${PASSWORD}
>=20
> it will work correctly.
>=20
> However,
> If
>  I use user data (lets you execute powershell commands on instance=20
> start) it will fail. It will also fail if I try execute the command=20
> using winrm (the windows equivalent of ssh).=20
>=20
> If I rdp into the machine and execute it manually then the cygwin name wi=
ll be 'cyg_server'
> If I try automate it the cygwin name is <machine_name>+'cyg_server'
> It then cannot find the cyg_server account and fails.

I can't reproduce your scenario so I'd be grateful if you (or anybody else
having this problem) could inspect the ssh-host-config script and try to
find out how to recognize and workaround the scenario.


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--AH+kv8CCoFf6qPuz
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWjqG7AAoJEPU2Bp2uRE+gsbIQAJ+iBxo19pmqJ2/5UBQSdYWk
H45/eFHBmRrhsA5BDFuMJtsLLT3V7qv2wSnG2bQ9//FvsrbZMWfujnQRmTDF7hhQ
0l6tMOjt0R9+GTKJYtyRCUT6Y0wBV0v4WHWNX6pbIS3MMc8Y8BoUwgw5TRlns2qv
fI9ZA6RAavfvzQkOm+qlIijsKRdqsD2NiBS5TXvHF/+5eI+e73OK4pq0juGfzYNe
FQchmu9TO9dGor4zKCN/hPGLbegfh0qZgW0rsKb+FMV7igrB6ner+CbUAgyW13cg
WDH+l+nkLa+D8BL0HV7jauFGaizku85OJYfUu1bjkYALa0ApicqRGaSMmql384gG
O7qMuOHGTRqPMbyZoHgwfIiTYKh5SrJ2SiTVl+iV1+WPaEm7F8vPPzQUbkTSJeel
YMLfq4qgebSw0i3u3QO25jLbDXRluqvfsi2JDVAicHK3uvWsQR+x/51IspmXyg9o
gbmRMsi0ROamgegwZ1YwyNdbMBUbIYA7rm93kSZM/Q0NNgdzFkGjWnBL/lIAZ6UQ
kjOefZWcIBD7LL69a6l+98lZ9kTxoTHIeTSDigIh2yrVJdT5ryCAhiVAwlYBSLCJ
zEpM2+suKXYigLAcRqH0XaXsQmouhNsrVCaCasEkvU36JaxhMf2SE0CjW1Sr00uc
dMR89xOrlEm1S9QoACmG
=ShrT
-----END PGP SIGNATURE-----

--AH+kv8CCoFf6qPuz--

- Raw text -


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