public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* windows 10 native ubuntu hijacked sshd and starts DOS shell
@ 2016-10-30  8:05 reik red
  2016-10-30 19:39 ` cyg Simple
  2016-10-31 19:36 ` Stephen John Smoogen
  0 siblings, 2 replies; 5+ messages in thread
From: reik red @ 2016-10-30  8:05 UTC (permalink / raw)
  To: cygwin

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.


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: windows 10 native ubuntu hijacked sshd and starts DOS shell
  2016-10-30  8:05 windows 10 native ubuntu hijacked sshd and starts DOS shell reik red
@ 2016-10-30 19:39 ` cyg Simple
  2016-10-31  1:01   ` reik red
  2016-10-31 19:36 ` Stephen John Smoogen
  1 sibling, 1 reply; 5+ messages in thread
From: cyg Simple @ 2016-10-30 19:39 UTC (permalink / raw)
  To: cygwin

On 10/30/2016 2:21 AM, reik red 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.

Not having it my self my SWAG is you need to disable the sshd in the
ubuntu environment or Windows services.

-- 
cyg Simple

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: windows 10 native ubuntu hijacked sshd and starts DOS shell
  2016-10-30 19:39 ` cyg Simple
@ 2016-10-31  1:01   ` reik red
  0 siblings, 0 replies; 5+ messages in thread
From: reik red @ 2016-10-31  1:01 UTC (permalink / raw)
  To: cygwin

On 10/30/16 11:36, cyg Simple wrote:
> On 10/30/2016 2:21 AM, reik red 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.
> Not having it my self my SWAG is you need to disable the sshd in the
> ubuntu environment or Windows services.
>

I found a method that works: Run msconfig, select the tab called services, and uncheck the the checkmarks of  a) SSH
Server Broker and b) SSH Server Proxy. Then restart (reboot), and cygwin sshd server will run as it did before (if it
was running before, that is).




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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: windows 10 native ubuntu hijacked sshd and starts DOS shell
  2016-10-30  8:05 windows 10 native ubuntu hijacked sshd and starts DOS shell reik red
  2016-10-30 19:39 ` cyg Simple
@ 2016-10-31 19:36 ` Stephen John Smoogen
  2016-10-31 21:19   ` reik red
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen John Smoogen @ 2016-10-31 19:36 UTC (permalink / raw)
  To: reikred, cygwin

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 :).


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



-- 
Stephen J Smoogen.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: windows 10 native ubuntu hijacked sshd and starts DOS shell
  2016-10-31 19:36 ` Stephen John Smoogen
@ 2016-10-31 21:19   ` reik red
  0 siblings, 0 replies; 5+ messages in thread
From: reik red @ 2016-10-31 21:19 UTC (permalink / raw)
  To: Stephen John Smoogen, cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-31 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-30  8:05 windows 10 native ubuntu hijacked sshd and starts DOS shell reik red
2016-10-30 19:39 ` cyg Simple
2016-10-31  1:01   ` reik red
2016-10-31 19:36 ` Stephen John Smoogen
2016-10-31 21:19   ` reik red

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).