Slashdot Mirror


Microsoft To Support SSH In Windows and Contribute To OpenSSH

An anonymous reader writes: Microsoft has announced plans for native support for SSH in Windows. "A popular request the PowerShell team has received is to use Secure Shell protocol and Shell session (aka SSH) to interoperate between Windows and Linux – both Linux connecting to and managing Windows via SSH and, vice versa, Windows connecting to and managing Linux via SSH. Thus, the combination of PowerShell and SSH will deliver a robust and secure solution to automate and to remotely manage Linux and Windows systems." Based on the work from this new direction, they also plan to contribute back to the OpenSSH project as well.

9 of 285 comments (clear)

  1. Re:Cygwin by the_B0fh · · Score: 4, Informative

    No. Cygwin runs everything under one process. This will run separate processes for each SSH session, with privilege separation. Cygwin also uses its own /etc/passwd. This will use local windows users, and, hopefully, AD users.

    And code will be sent upstream.

    Much better if this works out.

  2. Re:I wonder by kosmosik · · Score: 2, Informative

    They have no choice. Well they could just stick with Windows Server and Windows Clients but it actually happens that they are offering Linux as a product/service (in their Cloud). So why not embrace and extend methods to manage Linux via their tools? In my opinion this is good trend.

  3. Re:Nice by ArmoredDragon · · Score: 3, Informative

    Maybe. Assuming Microsoft makes a proper SSH client that is as good as PuTTY, instead of software like that piece of shit called HyperTerminal from way back when, which almost always couldn't establish a proper working terminal with anything, had basically no file transfer support (or rather, it had very buggy and limited support,) and required a very annoying (and mostly pointless) setup process each time you wanted to connect to a different host.

    Then again, why not just fork and bundle PuTTY? But do something to make the sessions easily exportable (I really hate how PuTTY stores those in the registry by default.)

    In fact, it would be awesome if the registry just disappeared entirely. I haven't met anybody who actually likes it, and god knows it's been a dream come true for malware authors who want to hide shit (easy to do since it's so big, maze-like, and unwieldy for anybody to sift through.)

  4. Re:I wonder by the_povinator · · Score: 5, Informative
    The linked-to blog contains an interesting statement which could be interpreted as bashing Ballmer:

    Finally, I'd like to share some background on today’s announcement, because this is the 3rd time the PowerShell team has attempted to support SSH. The first attempts were during PowerShell V1 and V2 and were rejected. Given our changes in leadership and culture, we decided to give it another try and this time, because we are able to show the clear and compelling customer value, the company is very supportive.

    --
    The .sig is dead, and I believe I had a hand in killing it.
  5. Re:What do they need to contribute back? by viperidaenz · · Score: 3, Informative

    What piece of code would the Open SSH project possibly want from any developer?

    It's not like it's defect-free software that requires no more development.
    https://bugzilla.mindrot.org/s...

  6. Re:Odd thoughts: by Penguinisto · · Score: 4, Informative

    The big difference is that *nix started with short easy-to-type options... PowerShell did it the other way 'round. The difference is stark, truth be told; the former grew from a CLI mindset, whereas the latter is easing (back) into CLI from a GUI mindset.

    TBH, I rarely if ever use --option unless I have to, since the original -o is right frickin' there.

    --
    Quo usque tandem abutere, Nimbus, patientia nostra?
  7. Re: Odd thoughts: by Gadget_Guy · · Score: 4, Informative

    I just tried typing help copy on my computer and it worked, yet I don't have an msdn subscription. That said, help is not installed by default. From the equally free online version of Microsoft's documention:

    Windows PowerShell 3.0 does not come with help files. To download and install the help files that Get-Help reads, use the Update-Help cmdlet. You can use the Update-Help cmdlet to download and install help files for the core commands that come with Windows PowerShell and for any modules that you install. You can also use it to update the help files so that the help on your computer is never outdated.

    Finally, if you want to write help for your own Powershell code, just type help about_Comment_Based_Help for details on how to do this. No need to buy any licences.

  8. Re:Timeo Danaos et dona ferentes by Gadget_Guy · · Score: 4, Informative

    K. Construct a for loop in PS that lists a directory and adds the words "This is cool" to the 13th line of any file of type "text" without downloading a module.

    Off the top of my head (and using verbose commands to make it more obvious), I got:

    dir | where -Property Extension -match '.te?xt' | foreach {

    $i=0;
    $s=(Get-Content $_.FullName);
    $s | foreach { if ( (($i++) % 13) -eq 0) { $_+" This is cool" } else { $_ } } | Set-Content $_.FullName

    }

    I haven't thought of a way to do the file type determination (other than by the extension), but that will do just for a post to an AC. It can all be done on a single line; I added the line breaks and indentation so it wasn't a big line of gobbledegook. Now it is several lines of gobbledegook!

    The impressive part of the tab completion of Powershell is how context sensitive it is. When I typed the where command, I entered -p<TAB> and it expanded it to -Property (although just -p would work too). But the fun part was that I could then type e<TAB> and then go through the list of property names that are returned from the dir command that begin with the letter e; first Exists, then Extension. So it was aware what was being passed to the where command on the pipeline and returning the correct properties for that object.

    So if I typed the following:

    get-content "file.txt" | where -Property

    ...and pressed the tab key, it gives me the property name of Length as it knows that it is returning a string rather than a file. The same where command will work on (and give appropriate tab completion) on a directory listing, file output, database query, or XML tree list.

  9. Re:Nice by acoustix · · Score: 3, Informative

    Maybe. Assuming Microsoft makes a proper SSH client that is as good as PuTTY, instead of software like that piece of shit called HyperTerminal...

    If I remember correctly, Microsoft didn't make HyperTerminal. They either bought it or licensed its use in Windows.

    --
    "A plan fiendishly clever in its intricacies"- Homer Simpson