News for hackers. Stuff that matters.
Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Tuesday December 12, 2017 @04:04PM (#15909450)
Hey there, everyone! I'm the PM for this project, and it looks like I'm a little late to the party, but I wanted to drop in some notes to add to the discussion:

* we also shipped OpenSSH's sshd server, but it's a little tricky to configure right now. Expect a blog post this week. * This is not production-ready in the current version of Windows 10 (hence the "(Beta)" in the label), but we hope to be soon. * All of this is being done in open-source out of a fork at https://github.com/powershell/Win32-OpenSSH (code work is technically checked into https://github.com/powershell/openssh-portable/ first, but those will be consolidated at some point). Check the Wiki there for a ton of info. * We've been working closely with the official OpenSSH Portable maintainers to get upstream at some point in the future. They've been awesome to work with so far, and we're really looking forward to moving Windows onto the definitive SSH implementation of the world.

This is been a super fun project to work on over the last couple years, and I'm glad that there's such a groundswell of excitement around it. Like I said, I hope to be publishing a lot more documentation/material on our plans as we get to a production-ready state.

I've also been super swamped with the release of PowerShell Core 6.0 [1] for Windows/macOS/Linux coming early next year, hence the lack of a good release announcement on these beta bits...Thanks to Patrick Kennedy for finding it and letting everyone know! :) )

[1]: https://github.com/powershell/powershell

Re:Microsoft Adds an OpenSSH Client to Windows 10 by jlgaddis on Tuesday December 12, 2017 @05:57PM (#15910276)
Having no idea how an SSH server is intended to work on Windows, I have a question:

When I connect to a Windows box running an sshd, what exactly happens? Do I just get dropped into a command prompt or PowerShell session or what?

Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Tuesday December 12, 2017 @11:08PM (#15911952)
It drops into cmd, but it is configurable (and there's actually a Chocolatey community package for it that I believe prompts you for which default shell you want at install-time).

With PowerShell Core 6, we also support PowerShell Remoting Protocol (PSRP) over SSH as a transport, which means that you can do stuff like New-PSSession and Enter-PSSession without WinRM. (PowerShell just gets registered as a "subsystem" of sshd, same thing sftp-server does.) You can check that out here: https://github.com/powershell/powershell/tree/master/demos/S...

Re:Microsoft Adds an OpenSSH Client to Windows 10 by nailer on Wednesday December 13, 2017 @11:04AM (#15915071)
That's really odd. Are you going to fix this before the final release?
Re:Microsoft Adds an OpenSSH Client to Windows 10 by flamtap on Tuesday December 12, 2017 @08:56PM (#15911374)
Please say powershell... Please say powershell...
Re:Microsoft Adds an OpenSSH Client to Windows 10 by naikrovek on Tuesday December 12, 2017 @10:43PM (#15911845)
cmd.exe, but it is probably configurable, and you can always just type 'powershell' to get it.
Re:Microsoft Adds an OpenSSH Client to Windows 10 by scott_karana on Tuesday December 12, 2017 @10:57PM (#15911910)
Invoking via cmd is not comparable at all.

If it was direct to Powershell, you could pipe objects directly into remote cmdlets.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Tuesday December 12, 2017 @11:17PM (#15911990)
Posted above, but just in case, we also support this with PowerShell Core 6: https://github.com/powershell/powershell/tree/master/demos/S...
Re:Microsoft Adds an OpenSSH Client to Windows 10 by j_s on Tuesday December 12, 2017 @06:23PM (#15910482)
Nice work. Is it fair to ask for even a ballpark answer on what the licensing story will be?

Windows Client Access Licensing is annoying, but they have some web exception for web servers. SSH remote access is a whole new ballgame! I assume it is encouraged for one-at-a-time administrator use in much the same way Remote Desktop currently works, but even that isn't really communicated clearly yet (even from a high-level perspective).

It seems like getting the plans out there as soon as possible to begin collecting feedback and managing expectations is going to be win-win for everyone.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Tuesday December 12, 2017 @11:09PM (#15911958)
I don't have a good answer for you right now, but we're tracking it here and I'll be responding back here with some info when I have it: https://github.com/PowerShell/Win32-OpenSSH/issues/926
Re:Microsoft Adds an OpenSSH Client to Windows 10 by DKnoll on Wednesday December 13, 2017 @08:33PM (#15919303)
Don't worry, you'll also be able to license your OpenSSH server per core (minimum 4 per-core licenses).

I'm joking.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by angled on Wednesday December 13, 2017 @01:10AM (#15912397)
I am having difficulty creating a new keypair using ssh-keygen.exe and a passphrase - should this be working? I receive the error ``Saving key "[...]/.ssh/id_ed25519" failed: invalid argument''.

It works fine without a passphrase.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Thursday December 14, 2017 @07:30PM (#15928763)
Haven't seen that error message before but I highly encourage you to use our GitHub builds where we've fixed a ton of issues related to path parsing and VT100/ANSI compatibility.

Those builds will also be showing up in Insider builds over the next few weeks (if they haven't already).

Re:Microsoft Adds an OpenSSH Client to Windows 10 by acangiano on Wednesday December 13, 2017 @11:06AM (#15915079)
I had the same issue, plus -t rsa didn't work, and my existing keys weren't accepted anymore. I ended up uninstalling it.
Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Thursday December 14, 2017 @07:32PM (#15928771)
As part of the beta, we only support crypto algorithms that ship as part of OpenSSH itself, as opposed to algorithms that ship in OpenSSL/LibreSSL. Hence, we only support ed25519 in Fall Creators Update.

If you grab our GitHub bits, we compile against LibreSSL there, and you should see LibreSSL showing up in future Insider builds of Windows. That brings support for all the other crypto algorithms you'd expect (RSA, DSA, etc.)

Re:Microsoft Adds an OpenSSH Client to Windows 10 by dhuramas on Tuesday December 12, 2017 @04:08PM (#15909484)
Does it work with older Windows versions?
Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Tuesday December 12, 2017 @11:13PM (#15911969)
Yup! We support down to Windows 7 and Windows Server 2008R2. You just have to install the bits from GitHub (but they're actually more up-to-date because we can ship there a lot faster).
Re:Microsoft Adds an OpenSSH Client to Windows 10 by bringtheaction on Tuesday December 12, 2017 @06:16PM (#15910423)
Probably not. The Windows Subsystem for Linux was introduced with Windows 10.
Re:Microsoft Adds an OpenSSH Client to Windows 10 by chokolad on Tuesday December 12, 2017 @06:36PM (#15910580)
This is a win32 port of OpenSSH, it does not use Windows Subsystem for Linux. WSL can already run Ubuntu elf-binaries of ssh.
Re:Microsoft Adds an OpenSSH Client to Windows 10 by zarkov99 on Tuesday December 12, 2017 @05:21PM (#15910049)
Will this support network drives? That has been a sore spot in every ssh on windows attempt I have seen so far.
Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Tuesday December 12, 2017 @11:12PM (#15911967)
What kind of network drive support are you looking for specifically?

If you mean, "interact with them from an interactive shell like cmd or PowerShell", yes, you can absolutely do that. Our implementation literally stands up a console host on the server side, so whatever you can do in that console host with the privileges you have, you can do over SSH.

If you mean, "do you support SCP and SFTP for transferring files in a network-drivey way" the answer is also yes. SCP is supported directly against sshd, and we ship both an SFTP server and client.

If you're talking about something NFS or SMB related, I'd be curious to hear more details.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by askvictor on Tuesday December 12, 2017 @07:01PM (#15910725)
Nice one! Now, can we get a terminal with tabs? Will that be a thing with the new windows tabbing approach?
Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Tuesday December 12, 2017 @11:16PM (#15911984)
I don't sit within the console host team, but I do work very closely with them and their PM Rich Turner is very active on Twitter (@richturn_ms). They're tracking the (very popular) request for tabs at https://wpdev.uservoice.com/forums/266908-command-prompt-con...
Re:Microsoft Adds an OpenSSH Client to Windows 10 by rdslw on Wednesday December 13, 2017 @12:20PM (#15915652)
Thanks for the link.

It says "ON THE BACKLOG" since October 01, 2014. You have a pretty long backlog, if you didnt implement the second top voted request in three years, out of backlog ;-)

Re:Microsoft Adds an OpenSSH Client to Windows 10 by joeyaiello on Thursday December 14, 2017 @07:34PM (#15928780)
Again, not my backlog personally, but I'd wager that the VT100 work that they've been doing in the console host is going to do a lot more for the ecosystem (WSL/"Bash on Windows" included) than tabs.

That being said, yeah, I also want tabs. In the meantime, I switch back and forth between conhost and Cmder. :shrug:

Re:Microsoft Adds an OpenSSH Client to Windows 10 by Joeri on Wednesday December 13, 2017 @03:44PM (#15917487)
Tabs are actually coming to every windows application as part of a W10 feature update: https://arstechnica.com/gadgets/2017/11/tabs-come-to-every-w...