This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't use key authentication on x64 Server 2003 R2


On 12/30/2009 12:56 AM, Csaba Raduly wrote:

If I understand this correctly, it is the ssh client which quits abruptly. Error 126 is "The notorious error 126 (ERROR_MOD_NOT_FOUND) when loading DLL/DSO's in Win32" (first hit when googling "Win32 error 126"). However, WSAGetLastError is in ws2_32.dll, which is part of Windows. But, being a 32-bit dll in a 64-bit Windows, maybe it's in another directory which is not on the path. Check the folder of ws2_32.dll

Were you connecting from exch64 to exch64 ?

I'd also seen one list member draw that conclusion, but for the life of me I can't see why. I'm connecting from a Linux host, and the error appears to be printed by Cygwin's bash.exe.


bash.exe doesn't appear to be linked to that dll on either host. I do notice that /cygdrive/c/WINDOWS/system32 appears before /cygdrive/c/WINDOWS/sysWOW64 in the PATH. I know nothing about Windows' linker or loader, so I don't know if that could be a problem. Is there any way to change it system-wide for Cygwin? On the broken 64 bit host:

$ ldd /bin/bash.exe
kernel32.dll => /cygdrive/c/WINDOWS/syswow64/kernel32.dll (0x7d4c0000)
ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7d600000)
kernel32.dll => /cygdrive/c/WINDOWS/syswow64/kernel32.dll (0x7d4c0000)
cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)
ADVAPI32.DLL => /cygdrive/c/WINDOWS/syswow64/ADVAPI32.DLL (0x7d1e0000)
RPCRT4.dll => /cygdrive/c/WINDOWS/syswow64/RPCRT4.dll (0x7da20000)
Secur32.dll => /cygdrive/c/WINDOWS/syswow64/Secur32.dll (0x7d8d0000)
cygintl-8.dll => /usr/bin/cygintl-8.dll (0x6f5c0000)
cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x674c0000)
cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x67f00000)
cygreadline7.dll => /usr/bin/cygreadline7.dll (0x6afc0000)
cygncurses-9.dll => /usr/bin/cygncurses-9.dll (0x6db80000)
USER32.dll => /cygdrive/c/WINDOWS/syswow64/USER32.dll (0x7d930000)
GDI32.dll => /cygdrive/c/WINDOWS/syswow64/GDI32.dll (0x7d800000)
$ ls -l /cygdrive/c/WINDOWS/system32/ws2_32.dll
-rwxrwx---+ 1 Administrators SYSTEM 83456 2007-02-18 04:00 /cygdrive/c/WINDOWS/system32/ws2_32.dll
$ ls -l /cygdrive/c/WINDOWS/syswow64/ws2_32.dll
-rwxrwx---+ 1 Administrators SYSTEM 83456 2007-02-18 04:00 /cygdrive/c/WINDOWS/syswow64/ws2_32.dll
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/Support Tools/:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/ATI Technologies/ATI Control Panel/:/cygdrive/c/WINDOWS/system32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft/Exchange Server/bin:/cygdrive/c/Program Files/Microsoft/Exchange Server/Scripts:/cygdrive/c/WINDOWS/sysWOW64:/cygdrive/c/Program Files (x86)/ExchangeMapi/:/bin



On a working 32 bit host:


$ ldd /bin/bash
ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c800000)
kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll (0x77e40000)
cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)
ADVAPI32.DLL => /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x7d1e0000)
RPCRT4.dll => /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77c50000)
Secur32.dll => /cygdrive/c/WINDOWS/system32/Secur32.dll (0x76f50000)
cygintl-8.dll => /usr/bin/cygintl-8.dll (0x6f5c0000)
cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x674c0000)
cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x67f00000)
cygreadline7.dll => /usr/bin/cygreadline7.dll (0x6afc0000)
cygncurses-9.dll => /usr/bin/cygncurses-9.dll (0x6db80000)
USER32.dll => /cygdrive/c/WINDOWS/system32/USER32.dll (0x77380000)
GDI32.dll => /cygdrive/c/WINDOWS/system32/GDI32.dll (0x77c00000)
$ ls -l /cygdrive/c/WINDOWS/system32/ws2_32.dll
-rwxrwx---+ 1 Administrators SYSTEM 83456 2007-02-17 06:03 /cygdrive/c/WINDOWS/system32/ws2_32.dll




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]