Created
May 3, 2018 17:49
-
-
Save f-bader/a682813a0466f2b304f750cd0b5ea267 to your computer and use it in GitHub Desktop.
OpenSSH Server auf Windows 1709+ aktivieren
This file contains hidden or 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
# OpenSSH Server installieren | |
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 | |
# Dienst starten | |
Start-Service sshd | |
# Starttyp auf "Automatisch" stellen | |
Set-Service sshd -StartupType Automatic | |
Set-Service ssh-agent -StartupType Automatic |
This file contains hidden or 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
# PowerShell Core als Default Shell nutzen | |
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\PowerShell\6-preview\pwsh.exe" -PropertyType String -Force | |
# PowerShell Core als Subsystem hinzufügen | |
notepad "C:\ProgramData\ssh\sshd_config" | |
# Folgende Zeile im Bereich Subsystem ohne führende Raute einfügen | |
#Subsystem powershell C:/Program Files/PowerShell/6-preview/pwsh.exe -sshs -NoLogo -NoProfile | |
# Dienst neustarten | |
Restart-Service sshd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment