Cygwin sshd 服务启动但只产生错误

Cygwin sshd 服务启动但只产生错误

我知道以前有人问过这个问题,但是我看了其他问题,它们并没有帮助,所以这里......

我安装了 cygwin(仅安装了 OpenSSH 以及它自动选择的其他程序)。我运行了ssh-host-config并对所有程序都输入了“yes”(基本上是手动 ssh-host-config -y)。

它安装了该服务。

但是,每次服务启动时,我都会在 /var/log/sshd.log 中收到以下内容:

    158 [unknown (0xED4)] ? 2672 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
Exception: STATUS_ACCESS_VIOLATION at eip=7C919AF2
eax=00000000 ebx=00000000 ecx=000007B4 edx=77FEE0C0 esi=77FEE0B0 edi=00000000
ebp=0022EE94 esp=0022EE20 program=
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022EE94  7C919AF2  (00FEE0B0, 77FE25EE, 77FEE0B0, 7C90DCAE)
0022EECC  7C901046  (00261E90, 0022F094, 00000000, 00000000)
0022EEE4  77FE25A8  (0022EFF4, 0022F094, 0022EF50, 0022EF50)
0022EFF8  77FE1D0F  (00010002, 0022F014, 00261E90, 0022F094)
0022F01C  77FE1CB9  (00010002, 00261E90, 0022F094, 00000000)
0022F04C  77FE1E37  (00010002, 0022F0C8, 0022F094, 0022F1F0)
0022F060  77DE54D9  (0022F0C8, 0022F094, 00002000, 7C809B59)
0022F1F0  6108E202  (61600088, 00000003, 00020902, 00060000)
0022F220  6106E7C7  (0A000000, 00000003, 0022F24C, 0000B808)
0022F250  6106E872  (610CFE20, 610048AA, 7C980620, 7C8021B9)
0022F2A0  61004FF5  (610CFEE0, FFFFFFFE, 000007E4, 610CFE04)
0022F2F0  610052ED  (10003390, 10003390, 003620B0, 10000000)
0022F310  61007F9D  (10000000, 10003390, 7C91BF81, 10000240)
0022F330  100018A8  (10000000, 00000001, 00000000, 100017F0)
0022F350  7C90118A  (100017F0, 10000000, 00000001, 00000000)
0022F458  7C91B5D2  (00000000, C0150008, 00000000, 00000000)
End of stack trace (more stack frames may be present)  
  93485 [unknown (0xED4)] ? 2672 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  94005 [unknown (0xED4)] ? 2672 handle_exceptions: Error while dumping state (probably corrupted stack)
  94706 [unknown (0xED4)] ? 2672 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  95283 [unknown (0xED4)] ? 2672 handle_exceptions: Error while dumping state (probably corrupted stack)
  95985 [unknown (0xED4)] ? 2672 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  96528 [unknown (0xED4)] ? 2672 handle_exceptions: Error while dumping state (probably corrupted stack)
  97223 [unknown (0xED4)] ? 2672 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  97809 [unknown (0xED4)] ? 2672 handle_exceptions: Error while dumping state (probably corrupted stack)
  98540 [unknown (0xED4)] ? 2672 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  99102 [unknown (0xED4)] ? 2672 handle_exceptions: Error while dumping state (probably corrupted stack)
  99823 [unknown (0xED4)] ? 2672 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
 100374 [unknown (0xED4)] ? 2672 handle_exceptions: Error while dumping state (probably corrupted stack)
 101105 [unknown (0xED4)] ? 2672 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
 101661 [unknown (0xED4)] ? 2672 handle_exceptions: Error while dumping state (probably corrupted stack)

只要服务正在运行,这种情况就会一直持续。我无法连接到机器。

然而,如果我/usr/sbin/sshd手动运行,它可以正常启动,并且我可以连接到机器。

机器:

  • Windows XP 专业版
  • 防火墙 - 已禁用
  • 帐户:admin

我已经尝试过的东西:

  • 删除所有 cygwin 并重新安装(包括注册表项)
  • 重新启动计算机(多次)
  • 按照建议在安全模式下安装 cygwin这里
  • 按照建议,给予 SYSTEM 对 Cygwin 文件夹的“完全控制权”这里

任何帮助是极大的赞赏!

答案1

发现问题,以防其他人遇到同样的问题:

系统中有两个版本的“cygwin1.dll”。它正在查看错误的版本。如果您遇到此问题,请搜索该文件并删除其中一个(取决于您要保留哪个版本)。

相关内容