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]

1.7.1: problem with public key authentication on domain accounts


When I try to login to my cygwin 1.7.1 system using ssh and public key
authentication to my domain account, I get the error:
      3 [main] sshd 3128 C:\cygwin\usr\sbin\sshd.exe: *** fatal error
- could not load ws2_32, Win32 error 126

Using procmon, I see that sshd.exe is denied access to important
WinSock DLLs (see trace below). This problem does not occur when I do
the same experiment using a local account. It also does not occur if I
use password authentication with my domain account.

"Time of Day","Process Name","PID","Operation","Path","Result","Detail"
"2:33:29.4409400
PM","sshd.exe","3128","QueryOpen","C:\WINDOWS\system32\ws2_32.dll","ACCESS
DENIED",""
"2:33:29.4414579
PM","sshd.exe","3128","QueryOpen","C:\WINDOWS\system32\ws2_32.dll","ACCESS
DENIED",""
"2:33:29.4439342
PM","sshd.exe","3128","QueryOpen","C:\WINDOWS\system32\psapi.dll","ACCESS
DENIED",""
"2:33:29.4444776
PM","sshd.exe","3128","QueryOpen","C:\WINDOWS\system32\psapi.dll","ACCESS
DENIED",""
"2:33:29.4466767
PM","sshd.exe","3128","RegOpenKey","HKLM\Software\Microsoft\Windows
NT\CurrentVersion\GRE_Initialize","ACCESS DENIED","Desired Access:
Read"

A similar result occurs when I use a tty instead of a pipe to an Emacs buffer:

MOINDBBURGER:~/Desktop$ ssh localhost
Last login: Mon Jan  4 14:24:34 2010 from localhost
      5 [main] -bash 2532 C:\cygwin\bin\bash.exe: *** fatal error -
couldn't dynamically determine load address for 'WSAGetLastError'
(handle 0xFFFFFFFF), Win32 error 126
Connection to localhost closed.

MOINDBBURGER:~/Desktop$ ssh -v localhost
OpenSSH_5.3p1, OpenSSL 0.9.8l 5 Nov 2009
Pseudo-terminal will not be allocated because stdin is not a terminal.
debug1: Reading configuration data /Users/rgburger/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /Users/rgburger/.ssh/identity type -1
debug1: identity file /Users/rgburger/.ssh/id_rsa type 1
debug1: identity file /Users/rgburger/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /Users/rgburger/.ssh/known_hosts:18
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/rgburger/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
      3 [main] sshd 3128 C:\cygwin\usr\sbin\sshd.exe: *** fatal error
- could not load ws2_32, Win32 error 126
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 1840, received 2296 bytes, in 0.1 seconds
Bytes per second: sent 16727.3, received 20872.7
debug1: Exit status -1

Attachment: cygcheck.out
Description: Binary data

--
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]