X-Spam-Check-By: sourceware.org X-BT-id: 0c63ac5f4e104d617a77d3a55f1cdf5d Message-ID: From: DGFM-dfmsdev5b-Andrew Clark To: "'cygwin AT cygwin DOT com'" Subject: Cygwin 2.510.2.2 error - ssh_exchange_identi fication: Connection closed by remote host Date: Tue, 19 Jun 2007 19:29:50 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Loop-Check: outbound.public.mod.uk X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, As a newcomer to Cygwin, I would be grateful for any ideas on the following problem :- Problem: When attempting to invoke SSH commands via Cygwin Console the following errors are displayed (omdwap01 is the local windows server 2003 host, aodxdb01 is the remote HP-UX PA RISC 11.11 host): cygwinadm AT omdwap01 ~ $ ssh -v aodxdb01 OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to aodxdb01 port 22. debug1: Connection established. debug1: identity file /home/cygwinadm/.ssh/identity type 0 debug1: identity file /home/cygwinadm/.ssh/id_rsa type 1 debug1: identity file /home/cygwinadm/.ssh/id_dsa type 2 ssh_exchange_identification: Connection closed by remote host cygwinadm AT omdwap01 ~ $ ssh -v omdwap01 OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to omdwap01 port 22. debug1: Connection established. debug1: identity file /home/cygwinadm/.ssh/identity type 0 debug1: identity file /home/cygwinadm/.ssh/id_rsa type 1 debug1: identity file /home/cygwinadm/.ssh/id_dsa type 2 debug1: Remote proto version 1.99, remote software version OpenSSH_4.6 debug1: match: OpenSSH_4.6 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.6 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc 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 'omdwap01' is known and matches the RSA host key. debug1: Found key in /home/cygwinadm/.ssh/known_hosts:2 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 debug1: Next authentication method: publickey debug1: Offering public key: /home/cygwinadm/.ssh/id_rsa Connection closed by 10.200.3.157 cygwinadm AT omdwap01 ~ $ I have been able to successfully ping both the Windows Server 2003 host omdwap01 and the target HP-UX remote host aodxdb01 from both the DOS command line and Cygwin command line. Content of Cygwin file C:\Cygwin\var\log\sshd.log 3 [main] sshd 4584 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - CreateFileMapping Global\cygwin1S4.S-1-5-21-479934825-3410013992-681049352-2797.1, Win32 error 1346. Terminating. 3 [main] sshd 6080 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - CreateFileMapping Global\cygwin1S4.S-1-5-21-479934825-3410013992-681049352-2797.1, Win32 error 1346. Terminating. Content of Cygwin file C:\Cygwin\etc\passwd SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-OMDWAP01\Administrator,S-1-5-21 -736081257-974972255-628864144-500:/home/Administrator:/bin/bash Guest:unused_by_nt/2000/xp:501:513:U-OMDWAP01\Guest,S-1-5-21-736081257-97497 2255-628864144-501:/home/Guest:/bin/bash SUPPORT_388945a0:unused_by_nt/2000/xp:1001:513:CN=Microsoft Corporation,L=Redmond,S=Washington,C=US,U-OMDWAP01\SUPPORT_388945a0,S-1-5-21 -736081257-974972255-628864144-1001:/home/SUPPORT_388945a0:/bin/bash cygwinadm:unused_by_nt/2000/xp:12797:10545:cygwinadm,U-INFRADEV\cygwinadm,S- 1-5-21-479934825-3410013992-681049352-2797:/home/cygwinadm:/bin/bash sshd:unused_by_nt/2000/xp:1005:513:sshd privsep,U-OMDWAP01\sshd,S-1-5-21-736081257-974972255-628864144-1005:/var/emp ty:/bin/false sshd_server:unused_by_nt/2000/xp:1006:513:sshd server account,U-OMDWAP01\sshd_server,S-1-5-21-736081257-974972255-628864144-1006:/ var/empty:/bin/false O/P from cygcheck -srv command cygwinadm AT omdwap01 ~ $ cygcheck -srv Cygwin Configuration Diagnostics Current System Time: Tue Jun 19 16:52:07 2007 Windows 2003 Enterprise Server Ver 5.2 Build 3790 Service Pack 1 Running in Terminal Service session Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\Program Files\Support Tools\ c:\Program Files\Windows Resource Kits\Tools\ c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\WINDOWS\system32\Windows System Resource Manager\bin\ Output from C:\cygwin\bin\id.exe (nontsec) UID: 12797(cygwinadm) GID: 10545(mkgroup-l-d) 0(root) 544(Administrators) 545(Users) 10545(mkgroup-l-d) Output from C:\cygwin\bin\id.exe (ntsec) UID: 12797(cygwinadm) GID: 10545(mkgroup-l-d) 0(root) 544(Administrators) 545(Users) 10545(mkgroup-l-d) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER = 'cygwinadm' PWD = '/home/cygwinadm' CYGWIN = 'binmode tty ntsec' HOME = '/home/cygwinadm' MAKE_MODE = 'unix' HOMEPATH = '\Documents and Settings\cygwinadm' MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man' APPDATA = 'C:\Documents and Settings\cygwinadm\Application Data' HOSTNAME = 'omdwap01' TERM = 'cygwin' PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 4 Stepping 3, GenuineIntel' WINDIR = 'C:\WINDOWS' PERL5LIB = 'D:\oracle\product\10.2.0\OEM\oms10g\perl\5.6.1\lib\MSWin32-x86;D:\or acle\product\10.2.0\OEM\oms10g\perl\5.6.1\lib;D:\oracle\product\10.2.0\OEM\o ms10 g\perl\5.6.1\lib\MSWin32-x86;D:\oracle\product\10.2.0\OEM\oms10g\perl\site\5 .6.1 ;D:\oracle\product\10.2.0\OEM\oms10g\perl\site\5.6.1\lib;D:\oracle\product\1 0.2. 0\OEM\oms10g\sysman\admin\scripts' OLDPWD = '/usr/bin' USERDOMAIN = 'INFRADEV' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' TEMP = '/cygdrive/c/DOCUME~1/CYGWIN~1/LOCALS~1/Temp/1' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' USERNAME = 'cygwinadm' CLUSTERLOG = 'C:\WINDOWS\Cluster\cluster.log' PROCESSOR_LEVEL = '15' INVPTR = 'D:\oracle\product\10.2.0\OEM\agent10g\oraInst.loc' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' USERPROFILE = 'C:\Documents and Settings\cygwinadm' CLIENTNAME = 'AHDWXP24' PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' LOGONSERVER = '\\AHDWDC01' PROCESSOR_ARCHITECTURE = 'x86' !C: = 'C:\Cygwin\bin' SHLVL = '1' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = 'C:' PROMPT = '$P$G' COMSPEC = 'C:\WINDOWS\system32\cmd.exe' TMP = '/cygdrive/c/DOCUME~1/CYGWIN~1/LOCALS~1/Temp/1' SYSTEMROOT = 'C:\WINDOWS' CVS_RSH = '/bin/ssh' PROCESSOR_REVISION = '0403' INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES = 'C:\Program Files' NUMBER_OF_PROCESSORS = '4' SESSIONNAME = 'RDP-Tcp#35' COMPUTERNAME = 'OMDWAP01' _ = '/usr/bin/cygcheck' POSIXLY_CORRECT = '1' 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 a: fd N/A N/A b: cd N/A N/A c: hd NTFS 10001Mb 56% CP CS UN PA FC SYSTEM d: hd NTFS 129751Mb 11% CP CS UN PA FC New Volume 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 Not Found: cpp (good!) Not Found: crontab Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Found: C:\cygwin\bin\kill.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Not Found: patch Not Found: perl 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 Not Found: vim 61k 2006/11/10 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 "cygbz2-1.dll" v0.0 ts=2006/11/10 23:42 7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0 "cygcrypt-0.dll" v0.0 ts=2003/10/19 8:57 1059k 2007/03/29 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto-0.9.8.dll" v0.0 ts=2007/3/29 11:13 40k 2006/11/15 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0 "cygform-8.dll" v0.0 ts=2006/11/15 7:06 25k 2007/05/02 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0 "cyghistory6.dll" v0.0 ts=2007/5/2 2:01 976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2006/10/23 0:44 37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0 "cygintl-2.dll" v0.0 ts=2003/8/10 22:50 31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0 "cygintl-3.dll" v0.0 ts=2005/11/20 2:04 31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0 "cygintl-8.dll" v0.0 ts=2006/10/23 1:12 21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0 "cygmenu-8.dll" v0.0 ts=2006/11/15 7:05 20k 2006/12/21 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.1 sys=4.0 "cygminires.dll" v0.0 ts=2006/12/21 5:07 67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++-8.dll" v0.0 ts=2006/11/15 7:13 237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0 "cygncurses-8.dll" v0.0 ts=2006/11/15 7:02 12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0 "cygpanel-8.dll" v0.0 ts=2006/11/15 7:04 109k 2006/02/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcre-0.dll" v0.0 ts=2006/2/10 2:37 299k 2006/02/10 C:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcrecpp-0.dll" v0.0 ts=2006/2/10 2:38 7k 2006/02/10 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix-0.dll" v0.0 ts=2006/2/10 2:37 22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0 "cygpopt-0.dll" v0.0 ts=2002/6/9 6:45 154k 2007/05/02 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0 "cygreadline6.dll" v0.0 ts=2007/5/2 2:01 217k 2007/03/29 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0 "cygssl-0.9.8.dll" v0.0 ts=2007/3/29 11:13 65k 2006/10/16 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2006/10/16 2:10 1830k 2007/01/31 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2007/1/31 9:58 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 Service : sshd Display name : CYGWIN sshd Current State : Running Controls Accepted : Stop Command : /usr/sbin/sshd -D stdin path : /dev/null stdout path : /var/log/sshd.log stderr path : /var/log/sshd.log Environment : CYGWIN="binmode tty ntsec" Process Type : Own Process Startup : Automatic Dependencies : tcpip Account : .\sshd_server Cygwin Package Information Last downloaded files to: C:\Temp\CygwinPackages Last downloaded files from: C:\Temp\CygwinPackages Package Version _update-info-dir 00519-1 alternatives 1.3.29a-1 ash 20040127-3 base-files 3.7-1 base-passwd 2.2-1 bash 3.2.17-15 bzip2 1.0.3-2 coreutils 6.9-3 crypt 1.1-1 cygrunsrv 1.17-1 cygutils 1.3.1-1 cygwin 1.5.24-2 cygwin-doc 1.4-4 editrights 1.01-1 findutils 4.3.5-1 gawk 3.1.5-4 grep 2.5.1a-3 groff 1.18.1-2 gzip 1.3.12-1 less 381-1 libbz2_1 1.0.3-2 libiconv2 1.11-1 libintl2 0.12.1-3 libintl3 0.14.5-1 libintl8 0.15-1 libncurses8 5.5-3 libpcre0 6.6-1 libpopt0 1.6.4-4 libreadline6 5.2.4-8 login 1.9-7 man 1.6e-1 minires 1.01-1 mktemp 1.5-4 openssh 4.6p1-1 openssl 0.9.8e-3 rebase 2.4.3-1 run 1.1.10-1 sed 4.1.5-2 tar 1.16.1-1 termcap 20050421-1 terminfo 5.5_20061104-1 texinfo 4.8a-1 unzip 5.52-2 which 1.7-1 zip 2.32-2 zlib 1.2.3-2 Use -h to see help about each section cygwinadm AT omdwap01 Many thanks. Andy Clark -- 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/