Test-Driving New SSH Remoting

by Oct 23, 2020

If you’d like to test-drive the new PowerShell remoting alternative that is using SSH instead of WinRM, make sure you install PowerShell 7 first.

Next, from within PowerShell 7, install this module:

 
PS> Install-Module -Name Microsoft.PowerShell.RemotingTools -Scope CurrentUser  
 

Once the module is installed, in an elevated PowerShell 7 shell, you can enable the new SSH-based remoting with just one call:

 
PS> Enable-SSHRemoting 
 

Once the setup tasks are done, open an elevated PowerShell 7 shell, and try remoting to your own computer:

 
PS> Enter-PSSession -HostName $env:computername -UserName remotingUser   
 

Once that works as expected, you can now use the same technique to do remoting cross-platform from any PowerShell 7 instance to another one.


Twitter This Tip! ReTweet this Tip!