How To Configure OpenSSH On Windows For PowerShell Remoting Over SSH

preview_player
Показать описание

This video is intended to bridge the gap between the How To Set Up OpenSSH On Windows and How to Use PowerShell Remoting over SSH video videos. In this video, Matt will go through a couple settings that need to be configured on the client machine as well as in the sshd_config file on the SSH server. Once these settings are in place, Matt will demonstrate using Enter-PSSession using the -Hostname and -SSHTransport parameters to open a new PowerShell remote session over the SSH protocol. We will also compare the results of running New-PSSession over SSH versus WSMAN.
Prerequisites include:
OpenSSH for Windows
PowerShell 6 or higher on both client and server

Рекомендации по теме
Комментарии
Автор

what is the benefit of using PS-Session over using ssh client to server?

worksubhas
Автор

Hey Matt,
Thanks for posting this. It was very helpful and I was able to confirm I was doing the steps I had pieced together. I still get the "subsystem request failed on channel 0" error. I am having little luck finding useful help. So, if you have seen this, any help would be appreciated.
From: Windows 2012 R2 w/PWSH 6.1
To: Palo Alto 3050
Validated:
Port 22 was open to firewall
Username and Password are correct
New-Item -ItemType SymbolicLink -Path c:\pwsh -Value "C:\Program Files\PowerShell\6" -Force
"Subsystem powershell c:\pwsh\pwsh.exe -sshs -NoLogo -NoProfile" was added
"C:\Program Files\OpenSSH\" is in the Environment PATH
The kicker is SSH.exe works fine to the same machine. I know the warning is about the Subsystem, but I am at a loss on what to change to fix it.
If you are not familiar, no worries... just asking incase you might know
Jason W.

sfwLsr