8

I was trying to find out if I can use SSH in windows 10, there are many aricles from early this year saying windows 10 was going to include SSH in powershell, but I still can't use it in my windows 10. So does windows 10 support SSH already? or I still have to use third party apps like putty?

4

Windows does not currently have native SSH support (expected early 2016)

Some further reading here

  • Worth pointing out given Microsoft has been tight lipped about native SSH so far, its entirely possible the plans were scrapped. – Ramhound Jan 2 '16 at 17:47
  • ssh is included in the "Linux services for Windows", which is only available if you are running Win10 preview builds. Hopefully it will launch in the normal, stable builds soon. – sep332 Aug 18 '16 at 21:37
  • 2
    well, it looks like win10 now runs ssh service by default. I didn't do anything and I see it's listening on port 22 and I can connect to it using putty. Looks like they silently enabled it. – Pavel P Sep 23 '16 at 15:27
  • I have the same experience as Pavel. I installed the Linux Subsystem for Windows some time ago, and I've been using it, but I didn't know it included an SSH server. I only discovered it was running when I ran "netstat -a" and saw that port 22 was open. I then tried to SSH to my Windows machine from a Linux PC, and voilà! it worked. – Charles Burge Jan 5 '17 at 19:24
  • This is the last update I've seen: blogs.msdn.microsoft.com/powershell/2015/10/19/…. There are lots of activities on the project's GitHub repo but no word on roadmap: github.com/PowerShell/Win32-OpenSSH/commits/L1-Prod – JohnnyO Jan 10 '17 at 11:46
4

Here's a more complete answer as of last week:

The PowerShell team is continuing to work on a Windows OpenSSH implementation. Their active work can be seen in this repository which is a fork from the root openssh-portable repository. You can see from the commit history that the PowerShell team regularly merges upstream commits into their repository as well as adding their own commits.

As best I can tell PowerShell/openssh-portable has only modified the upstream code by adding the following folders (and their contained source files) ~/contrib/win32, ~/regress/pesterTests and ~/regress/unittests/win32compat.

On December 19, 2016 the PowerShell team created a pull request into the openssh/openssh-portable repository which is still under review. The most recent activity on the pull request appears to be comments/commits on Jun 13, 2017.

The PowerShell team has a second repository, PowerShell/Win32-OpenSSH, where they make builds of PowerShell/openssh-portable available. The Win32-OpenSSH repo has a few commits of its own but is mostly a source copy from PowerShell/openssh-portable.

You can see the list of Win32-OpenSSH releases here. The releases contain executable binaries of the common openssh commands. If you extract the binaries and then add their directory to your PATH variable you should be able to use them.

  • its SO nice to just shell out in Windows and use ssh, this is working great!! thanks! – user46550 Jul 31 '17 at 14:25
2

What you can do as an alternative is use putty for client side access. If you want something server side, that is a bit harder. But you could use cygwin. There are some articles to get its ssh daemon running as a windows service.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.