【发布时间】:2020-04-01 07:25:28
【问题描述】:
我已经使用以下手册在 Windows Server 2016 上安装了 OpenSSH:
Installing SFTP (SSH FTP) Server on Windows with OpenSSH
但是,我无法启动 OpenSSH(错误 1067)。最重要的是,services.msc 中根本不存在 sshd。
PS C:\OpenSSH-Win64> .\install-sshd.ps1
[SC] SetServiceObjectSecurity SUCCESS
[SC] ChangeServiceConfig2 SUCCESS
[SC] ChangeServiceConfig2 SUCCESS
sshd and ssh-agent services successfully installed
后来:
PS C:\OpenSSH-Win64> Start-Service sshd
Start-Service : Failed to start service 'OpenSSH SSH Server (sshd)'.
At line:1 char:1
+ Start-Service sshd
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
+ FullyQualifiedErrorId : StartServiceFailed,Microsoft.PowerShell.Commands.StartServiceCommand
【问题讨论】:
标签: openssh windows-server-2016 sshd