For Windows, follow these steps to configure SSH for PowerShell remoting:
- Based on the OS type, download the latest OpenSSH build (https://github.com/PowerShell/Win32-OpenSSH/releases).
- In this case, it is 64-bit, so the OpenSSH-Win64.zip file is downloaded.
- Extract the files to C:\Program Files\.
- Now, the files are saved under C:\Program Files\OpenSSH-Win64. Rename the folder to OpenSSH.
- Open the PowerShell console with an elevated permission and then run the following:
PS> powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files\OpenSSH\install-sshd.ps1"
- Next, add the OpenSSH path to the environment variable:
PS> $ENV:Path+=";C:\Program Files\OpenSSH;"
- To make the changes permanent, edit the registry entry, like ...