问题描述
我在cygwin提示符下输入ssh-host-config
(以admin特权开始),对特权分离说是,新的本地帐户sshd,将sshd作为服务安装;我没有为CYGWIN的守护进程输入任何值.我输入no是因为使用了其他名称;是,用于创建新的特权用户帐户.
I entered ssh-host-config
into the cygwin prompt (started with admin privileges), said yes to privilege separation, new local account sshd, install sshd as a service; I entered no value for CYGWIN for daemon; I entered no for using a different name; yes for creating new privilege user account.
在我的services.msc
中,我无法启动该服务:
In my services.msc
I am unable to start the service:
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
产生:
In the cygwin prompt, net start sshd
produces:
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
产生:
In the cygwin prompt, cygrunsrv -S sshd
produces:
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
我的/var/log/sshd.log显示以下内容:
My /var/log/sshd.log says the following:
Unable to initialize device PRN
我已经搜索了与该问题有关的问题,以及与整个Internet相关的问题,我想是什么使我的问题与sshd.log独特.我找不到其他收到此消息的人.
I've searched the questions on SO related to this issue, as well as the general Internet, and I guess what makes my question unique has to do with the sshd.log. I can't find anyone else who has received this.
我这样做是为了在Windows上安装Hadoop.我无法在这台速度较慢的计算机上运行虚拟机,因为一切都陷入了困境.
I'm doing this to install Hadoop on my Windows. I cannot run a virtual machine on this slow computer as everything just bogs down.
推荐答案
我按照本主题中的步骤进行操作,但问题仍然存在,然后我检查了sshd日志文件,并抱怨ssh私钥的特权要打开.
I followed the steps in this topic and the problem was still happening, then I checked the sshd log file and it was complaining that the privilegies of the ssh private key were to open.
我执行了以下命令:
chmod 400 /etc/ssh_host_ecdsa_key
然后我运行该服务:
net start sshd
它终于奏效了(顺便说一句:我正在使用Windows 8)
这篇关于无法启动cygwin sshd服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!