我在 cygwin 提示符中输入了 ssh-host-config
(以管理员权限启动),同意权限分离,新建本地帐户 sshd,将 sshd 安装为服务;我没有为守护进程的 CYGWIN 输入任何值;我输入否是因为使用了不同的名称;是的,用于创建新的特权用户帐户。
在我的 services.msc
中我无法启动服务:
The CYGWIN sshd service on Local Computer started and then stopped.
Some services stop automatically if they are not in use by other services
or programs.
在 cygwin 提示符下,net start sshd
产生:
The CYGWIN sshd service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534
在 cygwin 提示符下,cygrunsrv -S sshd
产生:
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
我的/var/log/sshd.log 说了以下内容:
Unable to initialize device PRN
我已经搜索了与此问题相关的 SO 问题以及一般 Internet,我猜是什么让我的问题独一无二与 sshd.log 有关。我找不到其他人收到此邮件。
我这样做是为了在我的 Windows 上安装 Hadoop。我无法在这台慢速计算机上运行虚拟机,因为一切都陷入了困境。
最佳答案
我按照本主题中的步骤进行操作,但问题仍然存在,然后我检查了 sshd 日志文件,它提示说 ssh 私钥的权限是打开的。
我执行了以下命令:
chmod 400 /etc/ssh_host_ecdsa_key
然后我运行服务:
net start sshd
终于成功了(顺便说一句:我使用的是 Windows 8)
关于hadoop - 无法启动cygwin sshd服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17736096/