【问题标题】:Cannot start openssh in Windows Server 2016无法在 Windows Server 2016 中启动 openssh
【发布时间】: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


    【解决方案1】:

    以下第 8 步有帮助:
    OpenSSH : Install

    返回 PowerShell 并移动到 OpenSSH 安装文件夹,然后运行 ​​[.\FixHostFilePermission.ps1],如下所示。

    【讨论】:

      猜你喜欢
      • 2021-10-10
      • 2014-04-11
      • 1970-01-01
      • 2020-04-03
      • 2018-02-26
      • 1970-01-01
      • 2018-09-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多