13
I was playing around with nmap and discovered my fully up to date windows 10 (1607 pro - not insider) box had port 22 open (ssh). I $ssh <ip>
to it and find that yes, there's an ssh server running on my machine. I've learned not to be surprised by anything when it comes to windows. I tried my password (both my local account pw and my windows "unix password" which was required when installing the new "Windows subsystem for Linux" and both failed.
I went on to the windows 10 machine and ran c:\>bash
and made sure ssh server was not set to start at any runlevel and then restarted (I have no idea how the linux in windows feature works other than it seems to work). After restarting I still showed port 22 open. I looked in windows firewall and found entries for the "ssh server proxy service"; I looked in services.msc and found "ssh server broker" and "ssh server proxy"; I looked on google and found absolutely nothing about ssh on windows other than promises of it happening at some point and people asking when?
What's going on? Why do I have an ssh server running I knew nothing about? How do I configure it? How do I kill it? Will killing it actually kill it? Or is it like the other options in Windows 10 which seem to occasionally switch back to what (presumably) Microsoft thinks I should have chosen (or wishes I had).
netstat -anp
should tell you which process is listening on port 22. – heavyd – 2016-09-02T00:10:00.473Use services.msc or another method to find out what executable is used. You should be able to do that for any service. Once you know the command line, you could use TASKKILL. – TOOGAM – 2016-09-02T04:15:59.787
I guess you could disable the 2 SSH services in
services.msc
. I would actually prefer it to be a real SSH server which I can use, instead of this weird useless service... – mivk – 2017-02-24T18:25:50.110+1 Especially for "I've learned not to be surprised by anything when it comes to windows". – Kamil Maciorowski – 2017-09-28T07:20:48.313
There is no way to answer "Why" questions - who know what evil goes on in the minds of programmers? ;-) – SDsolar – 2017-09-30T17:35:24.317