打开PowerShell,安装并设置开机自启动,启动服务
PS C:\Users\Administrator> Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Path : Online : True RestartNeeded : False PS C:\Users\Administrator> Set-Service ssh-agent -StartupType Automatic PS C:\Users\Administrator> Start-Service sshd PS C:\Users\Administrator> Start-Service ssh-agent PS C:\Users\Administrator>