Created
August 10, 2019 09:23
-
-
Save rupertbenbrook/d97c71dd126f2e0dd5e10380a7660470 to your computer and use it in GitHub Desktop.
Configure Windows Server 2019+ for SSHD with PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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