【问题标题】:How to launch openssh on windows10 64bit?如何在 windows10 64bit 上启动 openssh?
【发布时间】:2017-12-21 13:17:41
【问题描述】:

我无法在 windows10 64 位上启动 openssh。完成安装后,我按照以下说明设置密码:

1.  Open a command prompt and change to the installation directory (Program Files\OpenSSH is the default).

2.  CD into the bin directory.

3.  Use mkgroup to create a group permissions file. For local groups, use the "-l" switch. For domain groups, use the "-d" switch.
    For both domain and local, it is best to run the command twice (remember to use >>, not >). If you use both, make sure to edit the file to remove any duplicate entires.

      mkgroup -l >> ..\etc\group      (local groups)

4.  Use mkpasswd to add authorized users into the passwd file. For local users, use the "-l" switch. For domain users, use the "-d" switch.
    For both domain and local, it is best to run the command twice (remember to use >>, not >). If you use both, make sure to edit the file to remove any duplicate entires.

      mkpasswd -l >> ..\etc\passwd      (local users)

我已禁用 windows10 默认 ssh 服务。所以 22 端口是可用的。之后我尝试启动 sshd 服务器但失败了。 下面是我得到的错误。

C:\Program Files (x86)\OpenSSH>net start opensshd
The OpenSSH Server service is starting.
The OpenSSH Server service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

如何在 windows10 64bit 上配置 sshd?

【问题讨论】:

    标签: windows ssh windows-10 openssh


    【解决方案1】:

    原来我安装了一个非常旧版本的openssh。升级到openssh 7.5 后它工作正常。

    【讨论】:

      猜你喜欢
      • 2022-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-11
      相关资源
      最近更新 更多