delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/02/10:11:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,BAYES_40,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
connect(): No such file or directory
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: ssh error
Date: Wed, 02 Jun 2010 07:11:22 -0700
Lines: 85
Message-ID: <hu5oqa$ihb$1@dough.gmane.org>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.10) Gecko/20100512 Lightning/1.0b2pre Thunderbird/3.0.5
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

This must have something to do with Windows 2003. New Windows 2003 
server. Installed Cygwin 1.7. If I set up pre-shared key so I can ssh 
without having to enter my password it fails.

 From Windows 2003 -> XP:

2 [main] -bash 7288 C:\cygwin\bin\bash.exe: *** fatal error - couldn't 
dynamically determine load address for 'WSAGetLastError' (handle 
0xFFFFFFFF), Win32 error 126
Connection to hcu-g97pnd1 closed.

Similarly, if I try to scp a file from the XP -> Windows 2003:

Seacase:scp hcu-g97pnd1:Perl-* .
3 [main] sshd 8160 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - could 
not load ws2_32, Win32 error 126

And while I can ssh with a pre-shared key from XP -> Windows 2003:

Hcu-g97pnd1:ssh seacase

…

Seacase:

I cannot scp nor ssh with a single command from XP -> Windows 2003:

Hcu-g97pnd1:ssh seacase id
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
5 [main] sshd 27240 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - could 
not load user32, Win32 error 1114
Hcu-g97pnd1:scp /etc/passwd seacase:/tmp
3 [main] sshd 22020 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - could 
not load user32, Win32 error 1114
lost connection

I can scp or ssh with a single command from XP -> Windows 2003 if I 
remove the pre-shared key:

Hcu-g97pnd1:ssh seacase id
lf827522 AT seacase's password:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
uid=2456697(lf827522) gid=70025(unity) 
groups=70025(unity),544(Administrators),555(Remote Desktop
Users),545(Users)
Hcu-g97pnd1:scp /etc/password seacase:/tmp
lf827522 AT seacase's password:
/etc/password: No such file or directory
Hcu-g97pnd1:scp /etc/passwd seacase:/tmp
lf827522 AT seacase's password:
passwd 100% 1760 1.7KB/s 00:00
Hcu-g97pnd1:

Similar with Windows 2003 -> XP:

Seacase:ssh hcu-g97pnd1 id
3 [main] sshd 6852 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - could 
not load ws2_32, Win32 error 126
Seacase:scp hcu-g97pnd1:/etc/passwd /tmp
5 [main] sshd 6884 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - could 
not load ws2_32, Win32 error
126

And with pre-shared key turned off:

Seacase:ssh hcu-g97pnd1 id
lf827522 AT hcu-g97pnd1's password:
uid=2456697(lf827522) gid=70025(unity) 
groups=70025(unity),0(root),544(Administrators),545(Users),1012(SophosUser)
Seacase:scp hcu-g97pnd1:/etc/passwd /tmp
lf827522 AT hcu-g97pnd1's password:
passwd 100% 1760 1.7KB/s 00:00

To summarize with pre-shared key I can only ssh with no command from XP 
-> Windows 2003. All other things fail like ssh with a command or scp. 
Without a pre-shared key, everything works.

Is there any way to get pre-shared key to work. Note here I’m not even 
addressing the known issue of mounted file systems and pre-shared key.
-- 
Andrew DeFaria <http://defaria.com>
A fool-proof method for sculpting an elephant: First, get a huge block 
of marble; then chip away everything that doesn't look like an elephant.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019