X-Recipient: archive-cygwin@delorie.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:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=r9TO2+RpGRK+t0Tq
	OpQ9TC0nptJ/NwgOZCJ8o7wiCkCFFfiA6W8Xq/3bbX05EV1/o8Fn6j9LtrSyXOU0
	lxuhWGZV1Iaxs3ySaxt9sk2+DtKqkwbji/EF70I5LmNTXho8bjVN470Dd0oCrO+G
	QUgEgOUz3Y6wyDqDtb2zRwnyf38=
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:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=IzR2Br6Qq01cmfHcY2tOj4
	7MC74=; b=rT8WPe4we8KS0imnZkMgP9AeVKA0vaGbLdBIEQI2eKNZaI7XJwbjlg
	wo+nedn9pnR4D7UyxsVPlSZcqdfyg+cW2/eCPA5fp82rrZP1sUnAHwAdxaxz4XUp
	G/U7qFevn5ilbkijPv0soEY9an9r2I49Xd6DL9ukGD1h4Fk2CjluE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1783, H*MI:sk:bLZcOci, H*i:sk:bLZcOci, H*f:sk:CANnLRd
X-HELO: mail-pf0-f181.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:reply-to:subject:references:to:from:message-id         :date:user-agent:mime-version:in-reply-to:content-transfer-encoding;        bh=ihcCzEtzxCSIlt7cmbKGWE0dWfzZZR1b1/OY6jegNOk=;        b=Ri9HkTem5rFBbctaYBk6hNNct4mxW21rZoZST4kKbN7FF7BCk0V8251Pjf1CRHoZFD         bD1bS/+cBfEPUOk8WHJnrH3MjZlUOBjURbabQTR19JWoLLkIPhTwIh19NES9an5g+y+g         Ce1uUnVQuWwIZiL24yb/nw8Uyq5xvkVJ/Ot2Y3S1qN8o2ynBbWP+vLfeawjOHaqF+YaE         VuyxnXm6pJUKbg5XMhLu2X51RVJF0kJ+ns601CESaYs3QZ1U4REKqrQgMhrVYT+07k3U         sUZa/1w1mgNhvJmzDGI/RZOqcAF9XpFnqJ4iBrsmHrKS4SsIJsQruRoXe2yBn7F8ByRf         iL0g==
X-Gm-Message-State: ABUngvcbUwuUt5IEzEx6MQX6TJCZZr13GN3IFN85kyBUKDJQXIDnvZr8vivlMlrY2d10fw==
X-Received: by 10.98.166.70 with SMTP id t67mr15601564pfe.132.1477942572376;        Mon, 31 Oct 2016 12:36:12 -0700 (PDT)
Reply-To: reikred@gmail.com
Subject: Re: windows 10 native ubuntu hijacked sshd and starts DOS shell
References: <d333e184-6989-0994-44ae-3ec5743ad955@gmail.com> <CANnLRdhsAQe_vtQ61KNrKcUWy6wXT_Ce6=bLZcOciPpMG2EF-Q@mail.gmail.com>
To: Stephen John Smoogen <smooge@gmail.com>, cygwin@cygwin.com
From: reik red <reikred@gmail.com>
Message-ID: <dd67809c-e24a-1bf5-7a69-b48c2337816a@gmail.com>
Date: Mon, 31 Oct 2016 12:36:10 -0700
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.21) Gecko/20090320 Fedora/2.0.0.21-1.fc10 Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
In-Reply-To: <CANnLRdhsAQe_vtQ61KNrKcUWy6wXT_Ce6=bLZcOciPpMG2EF-Q@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 10/31/16 07:52, Stephen John Smoogen wrote:

> On 30 October 2016 at 02:21, reik red <reikred@gmail.com> wrote:
>> I updated my windows 10 laptop to the new "anniversary edition", which includes a "native" Ubuntu linux environment,
>> which includes a bash shell and other packages.
>>
>> When I later tried to ssh into win10, I discovered that I no longer get a login to cygwin, but rather to Ubuntu (and
>> with a new known_hosts fingerprint, as could be expected). Moreover, the login shell is not even bash but some sort of
>> DOS shell.
>>
>> My question is: Has anyone figured out how to steal sshd back to Cygwin, or, alternatively, to redirect the Ubuntu sshd
>> to start a Cygwin shell? Because Win10/ubuntu is very new, there seems to be not much information out there.
>>
>
>
> 1. This isn't the Ubuntu sshd or anything to do with Ubuntu. Windows
> 10 comes with its own SSHD which can be started and will drop you into
> a cmd.exe I don't know why it was active on your system after the
> update.. what version of 10 are you running?
> 2. To get Ubuntu working you need to download extra items from the
> Windows store.
>
> you found my 3. which was to run msconfig :).
>

You may very well be correct that the sshd I disabled is a new-ish Windows feature and not from Ubuntu. All I know is
that it appeared after I did the windows 10 home AE 2016 update, to be specific, to version 10.0.14393.

Ubuntu may have yet another sshd package available, which in my case would then be the 3d such packge. I will avoid
installing it :).

Upshot: I hope people will benefit from this thread when the coexistence of Windows, Cygwin and Windows WSL (Windows
Subsystem for Linux) creates unexpected sshd behavior.

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

