Skip to content

Instantly share code, notes, and snippets.

@rupertbenbrook
Created August 10, 2019 09:23
Show Gist options
  • Save rupertbenbrook/d97c71dd126f2e0dd5e10380a7660470 to your computer and use it in GitHub Desktop.
Save rupertbenbrook/d97c71dd126f2e0dd5e10380a7660470 to your computer and use it in GitHub Desktop.
Configure Windows Server 2019+ for SSHD with PowerShell
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment