gpt4 book ai didi

git - 网络启动 SSHD HELPMSG 3534

转载 作者:太空狗 更新时间:2023-10-29 13:33:04 26 4
gpt4 key购买 nike

我正在尝试在 Windows 机器上设置 Git,到目前为止一切似乎都在工作......除了这个:

net start sshd 得到错误 NETHELPSMG 3534

当我打字时

cygrunsrv --start sshd 我得到 QueryServiceStatus: Win32 error 1062

有什么办法解决这个问题吗?

最佳答案

您可以 find here在cygwin下解决这个问题所采取的步骤:

  • Look at /var/log/sshd.log:
    /var/empty must be owned by root and not group or world-writable.

  • Adjust mode of /var/empty and attempt to start sshd:

$ chmod 700 /var/empty
  • Change owner of /var/empty:
20080217-144416 Administrator <at> a64x23800p /var
$ chown root empty/
chown: invalid user: `root'
  • root is not a valid user name. Make an educated guess and try again:
20080217-151048 Administrator <at> a64x23800p /var
$ chown SYSTEM empty

20080217-151056 Administrator <at> a64x23800p /var
$ ll -d empty/
drwx------+ 2 SYSTEM None 0 Feb 17 14:30 empty//

然后:

20080217-151108 Administrator <at> a64x23800p /var
$ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.

关于1062错误,报windows服务还没有启动。

$ cygrunsrv --start sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32
error 1062:
The service has not been started.

..

$ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started. # only if the previous section was not solved

注意:请注意:

  • 某些防病毒软件可能会干扰该服务。
    参见 this thread .
  • 旧版本的 cygwin1.dll 也可能会干扰该过程。
    参见 that thread .

关于git - 网络启动 SSHD HELPMSG 3534,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1475571/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com