Hacker News new | comments | show | ask | jobs | submit login

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?




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


That's really odd. Are you going to fix this before the final release?


Please say powershell... Please say powershell...


cmd.exe, but it is probably configurable, and you can always just type 'powershell' to get it.


Invoking via cmd is not comparable at all.

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


Posted above, but just in case, we also support this with PowerShell Core 6: https://github.com/powershell/powershell/tree/master/demos/S...




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: