Mail Archives: cygwin/2007/05/16/15:12:02
The agent starts correctly, but I can't get ssh-add to give me anything other
than:
Could not open a connection to your authentication agent.
I'm running the latest Cygwin/packages. The socket is where it's supposed to
be, the env variables are set. I've tried using ssh-agent -a and putting the
socket in a different place in case it's a permissions issue, but no luck.
I have it working on my laptop. A combination of comparing an strace of the
failing and working ssh-add and a previous post of Corinna's leads me to
believe the problem is here:
67 84289 [main] ssh-add 4264 cygwin_select: 4, 0x0, 0x22C870, 0x22C850,
0x0
117 84406 [main] ssh-add 4264 dtable::select_write: fd 3
49 84455 [main] ssh-add 4264 dtable::select_except: fd 3
47 84502 [main] ssh-add 4264 cygwin_select: to NULL, ms FFFFFFFF
51 84553 [main] ssh-add 4264 cygwin_select: sel.always_ready 0
115 84668 [main] ssh-add 4264 start_thread_socket: Handle 0x6D0
54 84722 [main] ssh-add 4264 start_thread_socket: Added to writefds
47 84769 [main] ssh-add 4264 start_thread_socket: Added to exceptfds
835 85604 [main] ssh-add 4264 start_thread_socket: opened new socket 0x6B8
70 85674 [main] ssh-add 4264 start_thread_socket: exitsock 0x6B8
54 85728 [main] ssh-add 4264 start_thread_socket: stuff_start 0x22C7D4
452 86180 [select_socket] ssh-add 4264 cygthread::stub: thread
'select_socke
t', id 0x16B8, stack_ptr 0x1900CDC0
79 86259 [select_socket] ssh-add 4264 thread_socket: stuff_start 0x676F14
5405 91664 [main] ssh-add 4264 select_stuff::wait: m 2, ms 4294967295
993673 1085337 [select_socket] ssh-add 4264 thread_socket: Win32 select
returned
1
85 1085422 [select_socket] ssh-add 4264 thread_socket: s 0x673ED0, testing
fd
3 ()
63 1085485 [select_socket] ssh-add 4264 thread_socket: except_ready
*** In the working strace, this is "write_ready" ***
64 1085549 [main] ssh-add 4264 select_stuff::wait: woke up. wait_ret 1.
ver
ifying
51 1085600 [main] ssh-add 4264 select_stuff::wait: gotone 1
45 1085645 [main] ssh-add 4264 select_stuff::wait: returning 0
42 1085687 [main] ssh-add 4264 select_stuff::cleanup: calling cleanup
routine
s
44 1085731 [main] ssh-add 4264 socket_cleanup: si 0x673F00 si->thread
0x61104
F30
73 1085804 [main] ssh-add 4264 socket_cleanup: sent a byte to exitsock
0x6B8,
res 1
86 1085890 [main] ssh-add 4264 socket_cleanup: reading a byte from exitsock
0
x6B8
58 1085948 [main] ssh-add 4264 socket_cleanup: recv returned 1
91 1086039 [main] ssh-add 4264 socket_cleanup: returning
50 1086089 [main] ssh-add 4264 peek_socket: considering handle 0x6D0
43 1086132 [main] ssh-add 4264 peek_socket: adding write fd_set , fd 3
54 1086186 [main] ssh-add 4264 peek_socket: WINSOCK_SELECT returned 0
43 1086229 [main] ssh-add 4264 set_bits: me 0x673ED0, testing fd 3 ()
44 1086273 [main] ssh-add 4264 set_bits: ready 1
44 1086317 [main] ssh-add 4264 select_stuff::poll: returning 1
43 1086360 [main] ssh-add 4264 select_stuff::cleanup: calling cleanup
routine
s
43 1086403 [main] ssh-add 4264 select_stuff::~select_stuff: deleting select
r
ecords
96 1086499 [main] ssh-add 4264 cygwin_getsockopt: WinSock SO_ERROR = 10061
44 1086543 [main] ssh-add 4264 cygwin_getsockopt: 0 = getsockopt (3, 65535,
0
x1007, 0x22C8B4, 0x22C8B8)
46 1086589 [main] ssh-add 4264 __set_errno: int cygwin_connect(int, const
soc
kaddr*, socklen_t):806 val 111
According to Corinna, Winsock 1006 is connection refused. As she suggests in
that post, I've disabled the firewall to see if that fixes the problem, but no
luck.
I've uninstalled and reinstalled ssh several times and of course rebooted
several times. Still no luck.
At this point, the only other thing I can think of to try is reinstalling
Cygwin from scratch, but I'd like to avoid that if I can.
Any suggestions on what else to try/look for? Cygcheck output follows.
Cygwin Package Information
Package Version Status
_update-info-dir 00517-1 OK
alternatives 1.3.29a-1 OK
apache 1.3.33-2 OK
ash 20040127-3 OK
base-files 3.7-1 OK
base-passwd 2.2-1 OK
bash 3.2.17-15 OK
bc 1.06-2 OK
binutils 20060817-1 OK
bzip2 1.0.3-2 OK
cabextract 1.1-1 OK
coreutils 6.9-2 OK
cron 4.1-3 OK
crypt 1.1-1 OK
ctags 5.6-1 OK
cygrunsrv 1.17-1 OK
cygutils 1.3.1-1 OK
cygwin 1.5.24-2 OK
cygwin-doc 1.4-4 OK
cygwin-x-doc 1.0.4-1 OK
diffutils 2.8.7-1 OK
editrights 1.01-1 OK
emacs 21.2-13 OK
emacs-X11 21.2-13 OK
expat 1.95.8-2 OK
expect 20030128-1 OK
file 4.20-1 OK
findutils 4.3.5-1 OK
fontconfig 2.4.1-5 OK
freetype2 2.1.9-1 OK
gawk 3.1.5-4 OK
gcc-core 3.4.4-3 OK
gcc-mingw-core 20050522-1 OK
gdb 20060706-2 OK
gdbm 1.8.3-8 OK
gettext 0.15-1 OK
grep 2.5.1a-2 OK
groff 1.18.1-2 OK
gzip 1.3.12-1 OK
keychain 2.6.8-1 OK
less 381-1 OK
libapr1 1.2.8-2 OK
libaprutil1 1.2.8-1 OK
libbz2_1 1.0.3-2 OK
libdb4.2 4.2.52-1 OK
libdb4.3 4.3.28-1 OK
libexpat0 1.95.8-2 OK
libfontconfig1 2.4.1-5 OK
libfreetype26 2.1.9-1 OK
libgdbm 1.8.0-5 OK
libgdbm-devel 1.8.3-8 OK
libgdbm3 1.8.3-3 OK
libgdbm4 1.8.3-8 OK
libiconv2 1.11-1 OK
libintl 0.10.38-3 OK
libintl1 0.10.40-1 OK
libintl2 0.12.1-3 OK
libintl3 0.14.5-1 OK
libintl8 0.15-1 OK
libjpeg62 6b-12 OK
libncurses5 5.2-1 OK
libncurses6 5.2-8 OK
libncurses7 5.3-4 OK
libncurses8 5.5-3 OK
libpcre0 6.6-1 OK
libpng12 1.2.12-1 OK
libpopt0 1.6.4-4 OK
libreadline4 4.1-2 OK
libreadline5 4.3-5 OK
libreadline6 5.2.4-8 OK
libtiff4 3.6.0-5 OK
libungif 4.1.4-1 OK
libungif4 4.1.4-1 OK
libXft 2.1.6-1 OK
libXft1 1.0.0-1 OK
libXft2 2.1.6-1 OK
links 0.99pre14-1 OK
login 1.9-7 OK
lynx 2.8.5-4 OK
make 3.81-1 OK
man 1.6e-1 OK
mingw-runtime 3.12-4 OK
minires 1.01-1 OK
mktemp 1.5-4 OK
ncftp 3.2.0-1 OK
ncurses 5.5-3 OK
netcat 1.10-2 OK
openssh 4.6p1-1 OK
openssl 0.9.8e-3 OK
openssl097 0.9.7l-1 OK
patch 2.5.8-9 OK
patchutils 0.2.31-1 OK
pcre 6.6-1 OK
perl 5.8.7-5 OK
perl_manpages 5.8.7-5 OK
ping 1.0-1 OK
python 2.5.1-1 OK
rebase 2.4.3-1 OK
rsync 2.6.6-1 OK
run 1.1.10-1 OK
sed 4.1.5-2 OK
sharutils 4.6.3-1 OK
shutdown 1.7-1 OK
syslog-ng 1.6.12-1 OK
tar 1.16.1-1 OK
tcltk 20060202-1 OK
termcap 20050421-1 OK
terminfo 5.5_20061104-1 OK
texinfo 4.8a-1 OK
time 1.7-1 OK
units 1.77-1 OK
unzip 5.52-2 OK
vim 7.1-1 OK
w32api 3.9-1 OK
wget 1.10.2-2 OK
which 1.7-1 OK
whois 4.7.20-1 OK
wtf 0.0.4-6 OK
X-startup-scripts 1.0.11-1 OK
Xaw3d 1.5D-5 OK
xorg-x11-base 6.8.99.901-1 OK
xorg-x11-bin 6.8.99.901-1 OK
xorg-x11-bin-dlls 6.8.99.901-1 OK
xorg-x11-bin-lndir 6.8.99.901-1 OK
xorg-x11-etc 6.8.99.901-1 OK
xorg-x11-fenc 6.8.99.901-1 OK
xorg-x11-fnts 6.8.99.901-1 OK
xorg-x11-libs-data 6.8.99.901-1 OK
xorg-x11-man-pages 6.8.99.901-1 OK
xorg-x11-man-pages-html 6.8.99.901-1 OK
xorg-x11-xwin 6.8.99.901-1 OK
xterm 202-1 OK
zip 2.32-2 OK
zlib 1.2.3-2 OK
Cygwin Configuration Diagnostics
Current System Time: Wed May 16 15:01:09 2007
Windows XP Professional Ver 5.1 Build 2600 Service Pack 2
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Intel\DMIX
c:\Program Files\ATI Technologies\ATI Control Panel
c:\Program Files\Subversion\bin
c:\Program Files\QuickTime\QTSystem\
Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1006(Len) GID: 513(None)
0(root) 513(None) 544(Administrators)
545(Users) 1004(Debugger Users)
Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1006(Len) GID: 513(None)
0(root) 513(None) 544(Administrators)
545(Users) 1004(Debugger Users)
SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS
USER = 'Len'
PWD = '/home/Len'
HOME = '/home/Len'
MAKE_MODE = 'unix'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
(default) = '/cygdrive'
cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = 'C:\cygwin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = 'C:\cygwin/bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = 'C:\cygwin/lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
c: hd NTFS 148860Mb 31% CP CS UN PA FC
d: cd N/A N/A
e: cd N/A N/A
f: fd FAT 122Mb 42% CP UN
g: fd N/A N/A
h: fd N/A N/A
i: fd N/A N/A
C:\cygwin / system binmode
C:\cygwin/bin /usr/bin system binmode
C:\cygwin/lib /usr/lib system binmode
. /cygdrive system binmode,cygdrive
Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\patch.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe
103k 2007/04/06 C:\cygwin\bin\cygapr-1-0.dll
70k 2007/03/23 C:\cygwin\bin\cygaprutil-1-0.dll
61k 2006/11/10 C:\cygwin\bin\cygbz2-1.dll
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll
1125k 2006/10/04 C:\cygwin\bin\cygcrypto-0.9.7.dll
1059k 2007/03/29 C:\cygwin\bin\cygcrypto-0.9.8.dll
895k 2004/04/28 C:\cygwin\bin\cygdb-4.2.dll
965k 2005/05/14 C:\cygwin\bin\cygdb-4.3.dll
1156k 2004/04/28 C:\cygwin\bin\cygdb_cxx-4.2.dll
1240k 2005/05/14 C:\cygwin\bin\cygdb_cxx-4.3.dll
118k 2007/04/06 C:\cygwin\bin\cygexpat-0.dll
161k 2007/03/28 C:\cygwin\bin\cygfontconfig-1.dll
40k 2006/11/15 C:\cygwin\bin\cygform-8.dll
45k 2001/04/25 C:\cygwin\bin\cygform5.dll
35k 2002/01/09 C:\cygwin\bin\cygform6.dll
48k 2003/08/09 C:\cygwin\bin\cygform7.dll
375k 2005/09/06 C:\cygwin\bin\cygfreetype-6.dll
28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll
19k 2006/11/19 C:\cygwin\bin\cyggdbm-4.dll
19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll
15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll
8k 2006/11/19 C:\cygwin\bin\cyggdbm_compat-4.dll
17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll
25k 2007/05/02 C:\cygwin\bin\cyghistory6.dll
976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll
22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll
31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll
31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll
21k 2001/06/20 C:\cygwin\bin\cygintl.dll
124k 2006/11/09 C:\cygwin\bin\cygjpeg-62.dll
83k 2007/04/01 C:\cygwin\bin\cygmagic-1.dll
21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll
26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll
20k 2006/12/21 C:\cygwin\bin\cygminires.dll
67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll
156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll
226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll
12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll
15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll
109k 2006/02/10 C:\cygwin\bin\cygpcre-0.dll
299k 2006/02/10 C:\cygwin\bin\cygpcrecpp-0.dll
7k 2006/02/10 C:\cygwin\bin\cygpcreposix-0.dll
1249k 2005/12/30 C:\cygwin\bin\cygperl5_8.dll
226k 2006/11/05 C:\cygwin\bin\cygpng12.dll
22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll
108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll
154k 2007/05/02 C:\cygwin\bin\cygreadline6.dll
231k 2006/10/04 C:\cygwin\bin\cygssl-0.9.7.dll
217k 2007/03/29 C:\cygwin\bin\cygssl-0.9.8.dll
282k 2003/08/11 C:\cygwin\bin\cygtiff4.dll
27k 2005/10/23 C:\cygwin\bin\cygungif-4.dll
65k 2006/10/16 C:\cygwin\bin\cygz.dll
1830k 2007/01/31 C:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.5.24
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 156
Shared data: 4
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Wed Jan 31 10:57:51 CET 2007
CVS tag: cr-0x5f1
Shared id: cygwin1S4
20k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygfontenc-1.dll
34k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygFS-6.dll
357k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygGL-1.dll
441k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll
74k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygICE-6.dll
8k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll
1662k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygOSMesa-4.dll
28k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygSM-6.dll
884k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygX11-6.dll
8k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXau-6.dll
250k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXaw-6.dll
354k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXaw-7.dll
360k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXaw-8.dll
275k 2004/01/13 C:\cygwin\usr\X11R6\bin\cygXaw3d-7.dll
7k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXcomposite-1.dll
30k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXcursor-1.dll
8k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXdamage-1.dll
16k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXdmcp-6.dll
7k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXevie-1.dll
50k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXext-6.dll
15k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXfixes-3.dll
56k 2004/03/11 C:\cygwin\usr\X11R6\bin\cygXft-1.dll
63k 2004/03/23 C:\cygwin\usr\X11R6\bin\cygXft-2.dll
26k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXi-6.dll
121k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygxkbfile-1.dll
11k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygxkbui-1.dll
74k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXmu-6.dll
10k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXmuu-1.dll
26k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXp-6.dll
54k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXpm-4.dll
10k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXrandr-2.dll
30k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXrender-1.dll
7k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXRes-1.dll
38k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygxrx-6.dll
24k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygxrxnest-6.dll
283k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXt-6.dll
27k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll
17k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll
Service : sshd
Display name : CYGWIN sshd
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/sshd -D
-Len Giambrone
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -