r/PowerShell • u/ThomasMaurerCH • Apr 04 '19
Setup PowerShell SSH Remoting in PowerShell 6
https://www.thomasmaurer.ch/2019/04/setup-powershell-ssh-remoting-in-powershell-6/1
u/bopsbt Apr 05 '19 edited Apr 05 '19
Thanks.
Does PSCore / OpenSSH get updated with windows updates? Just thinking about security concerns with OpenSSH on Windows.
2
u/jcotton42 Apr 05 '19
PSCore is not a Windows component, and therefore not updated by WU.
OpenSSH is however
1
1
u/Gary_Chan1 Apr 05 '19
Can you SSH from PowerShell to network devices using SSH? I'd like to script the backup of my routers, switches and firewalls...
2
u/bopsbt Apr 05 '19
Yeah I'm pretty sure from Windows 10 you can by default with latest PowerShell.
Ssh [email protected] for example with nothing extra.
0
Apr 05 '19
[deleted]
2
u/get-postanote Apr 05 '19
This use cas eis not a PS6/PSCore thing. You've been able to do this in Windows PS for years now.
It's called Implicit Remoting for this use case.
Implicit PSRemoting allows you to proxy cmdlets from a remote machine to yours. They are only good for the session you asked for them and they really don't run on your loca system. They run on the remote host, and the results are returned to you.
You can just use ADSI instead as well.
PSCore does get RSAT in Ws2019 as per MSIgnite 2018 announcemnts and demos.
Point of note, PSCore v7 using .Net Core v3 is on the horizon.
2
u/tomtorggler Apr 04 '19
Good write up, thanks for sharing.