下载OpenSSH-Win64.zip
代码语言:javascript
复制C:Program FilesOpenSSH-Win64>powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
[SC] SetServiceObjectSecurity 成功
[SC] ChangeServiceConfig2 成功
[SC] ChangeServiceConfig2 成功
sshd and ssh-agent services successfully installed
C:Program FilesOpenSSH-Win64>sc config sshd start= auto
[SC] ChangeServiceConfig 成功
C:Program FilesOpenSSH-Win64>
C:Program FilesOpenSSH-Win64>net start sshd
OpenSSH SSH Server 服务正在启动 ...
OpenSSH SSH Server 服务已经启动成功。
C:Program FilesOpenSSH-Win64>