3 ms·
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
by jlgaddis 9y ago
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?
- flamtap 9y agoPlease say powershell... Please say powershell...
- naikrovek 9y agocmd.exe, but it is probably configurable, and you can always just type 'powershell' to get it.
- scott_karana 9y agoInvoking via cmd is not comparable at all. If it was direct to Powershell, you could pipe objects directly into remote cmdlets.
- joeyaiello 9y agoPosted above, but just in case, we also support this with PowerShell Core 6: https://github.com/powershell/powershell/tree/master/demos/SSHRemoting https://github.com/powershell/powershell/tree/master/demos/S...
- joeyaiello 9y agoIt 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/SSHRemoting https://github.com/powershell/powershell/tree/master/demos/S...
- nailer 9y agoThat's really odd. Are you going to fix this before the final release?