缺少的文件
# Install OenSSH
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
# Set service to automatic and start
Set-Service sshd -StartupType Automatic
Start-Service sshd
# Configure PowerShell as the default shell
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
# Restart the service
Restart-Service sshd
#参考 https://gist.githubusercontent.com/virtualhobbit/4f43e9823939c58ed1208a8305da61f5/raw/d8fbcd0b43f3a510e386e3163f21d66771ae86df/Install-Ssh.ps1
Win 2008 r2 安装SSH服务器下载微软开源的openssh下载最新的二进制版本: https://github.com/PowerShell/Win32-OpenSSH/releases 解压到C:\Pr...