无法在Windows Server 2016中启动openssh

时间:2019-12-07 15:55:12

标签: openssh windows-server-2016 sshd

我已使用以下手册在Windows Server 2016上安装了OpenSSH:
http://woshub.com/installing-sftp-ssh-ftp-server-on-windows-server-2012-r2/
但是,我无法启动OpenSSH(错误1067)。最重要的是,sshd在services.msc中根本不存在。

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

任何帮助专家都很感激!

1 个答案:

答案 0 :(得分:0)

以下步骤8有所帮助:
https://www.server-world.info/en/note?os=Windows_Server_2016&p=openssh
Quote:

Back to PowerShell and move to OpenSSH installed folder, then run [.\FixHostFilePermission.ps1] like follows.