在Windows 7上安装OpenSSH服务器出现问题(无法启动SSHD)

时间:2022-10-28 20:52:55

I just downloaded Cygwin for Windows 7. I want to install an OpenSSH SSH daemon, and after running "ssh-host-config", I tried starting the service by running

我刚刚为Windows 7下载了Cygwin。我想要安装一个OpenSSH SSH守护进程,在运行了“SSH -host-config”之后,我尝试通过运行来启动服务

$net start sshd
System error 1069 has occurred.

The service did not start due to a logon failure.

I changed the password for user "sshd" to have upper/lower case letters and numbers. But I still get this error. Any help or additional troubleshooting advice is appreciated, - Dave

我将用户“sshd”的密码更改为大写/小写字母和数字。但我还是得到了这个误差。感谢您的帮助或其他故障排除建议

3 个解决方案

#1


2  

I had the same issue. If you had previously tried to install openssh you need to remove it first.I followed this these two links for removing openssh:

我有同样的问题。如果您之前尝试过安装openssh,您需要首先删除它。我根据这两个链接来删除openssh:

http://pigtail.net/LRP/printsrv/vista-cygwin.txt

http://pigtail.net/LRP/printsrv/vista-cygwin.txt

http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/

http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/

They are mostly the same although the first link is based on the second one and the second one has some extra information about installing privileges for users.

虽然第一个链接基于第二个链接,第二个链接有一些关于为用户安装特权的额外信息,但是它们基本上是相同的。

After that you can try to reinstall openssh it should work.

之后,您可以尝试重新安装openssh,它应该可以工作。

#2


2  

It could be that your password for the cyg_server user has expired. This is usually the case with Windows Server versions.

可能cyg_server用户的密码已经过期。这通常是Windows服务器版本的情况。

Run lusrmgr.svc and change the password for it. You can also disable the Password never expires by checking the user's properties.

lusrmgr运行。并更改它的密码。您还可以通过检查用户的属性来禁用永远不会过期的密码。

You should be able to verify the password did expire by checking the windows events.

您应该能够通过检查windows事件来验证密码是否过期。

#3


-3  

"1069 Error Code is caused in one way or another by misconfigured system files in your windows operating system."

“1069错误代码是由您的windows操作系统中配置错误的系统文件造成的。”

You need to restore your OS to a previous state or download the repair tool. I have the same issue for the same reason.

您需要将操作系统恢复到以前的状态,或者下载修复工具。因为同样的原因,我也有同样的问题。

#1


2  

I had the same issue. If you had previously tried to install openssh you need to remove it first.I followed this these two links for removing openssh:

我有同样的问题。如果您之前尝试过安装openssh,您需要首先删除它。我根据这两个链接来删除openssh:

http://pigtail.net/LRP/printsrv/vista-cygwin.txt

http://pigtail.net/LRP/printsrv/vista-cygwin.txt

http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/

http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/

They are mostly the same although the first link is based on the second one and the second one has some extra information about installing privileges for users.

虽然第一个链接基于第二个链接,第二个链接有一些关于为用户安装特权的额外信息,但是它们基本上是相同的。

After that you can try to reinstall openssh it should work.

之后,您可以尝试重新安装openssh,它应该可以工作。

#2


2  

It could be that your password for the cyg_server user has expired. This is usually the case with Windows Server versions.

可能cyg_server用户的密码已经过期。这通常是Windows服务器版本的情况。

Run lusrmgr.svc and change the password for it. You can also disable the Password never expires by checking the user's properties.

lusrmgr运行。并更改它的密码。您还可以通过检查用户的属性来禁用永远不会过期的密码。

You should be able to verify the password did expire by checking the windows events.

您应该能够通过检查windows事件来验证密码是否过期。

#3


-3  

"1069 Error Code is caused in one way or another by misconfigured system files in your windows operating system."

“1069错误代码是由您的windows操作系统中配置错误的系统文件造成的。”

You need to restore your OS to a previous state or download the repair tool. I have the same issue for the same reason.

您需要将操作系统恢复到以前的状态,或者下载修复工具。因为同样的原因,我也有同样的问题。