Script to set up a OpenSSH server on Windows.
This script will also set PowerShell (pwsh
) as the default shell for SSH sessions. Make sure you have the latest version of PowerShell installed before running the script.
- Place any public keys you want to allow access in the
ssh
folder - Run the script
openssh-server.ps1
in a PowerShell session with elevated rights (Run as Administrator)