我在Windows 2016上安装了OpenSSH,手册如下:
用OpenSSH在Windows上安装SFTP (SFTP)服务器
但是,我无法启动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
发布于 2019-12-07 16:11:18
以下步骤中的第8步有所帮助:
返回到PowerShell并移动到OpenSSH installed文件夹,然后运行.\FixHostFilePermission.ps1,如下所示。
https://stackoverflow.com/questions/59227749
复制相似问题