openssh - 无法在 Windows Server 2016 中启动 openssh

标签 openssh windows-server-2016 sshd

我已使用以下手册在 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

最佳答案

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

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

关于openssh - 无法在 Windows Server 2016 中启动 openssh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59227749/

相关文章:

macos - 在 MacOS sierra 上哪里可以找到 sshd 日志

ssh - pam_unix(sudo :auth): conversation failed, auth 无法识别 [username] 的密码

iphone - 为 iPhone 编译 OpenSSH?

linux - Ansible - 禁用 ssh 密码认证

windows - Ansible无法通过SSH连接到Windows节点

c# - .NET Core 控制台应用程序无法在 Windows Server 上运行

ubuntu - 访问 Amazon EC2 实例的替代方法应该 sshd 死吗?

ubuntu - start-dfs.sh 抛出端口 22 : connection timeout error

docker - 在 docker 容器中运行巧克力失败

docker - 无法从容器内的主机名解析 ip