From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barramail.cs.umass.edu (barramail.cs.umass.edu [128.119.240.3]) by sourceware.org (Postfix) with ESMTPS id 496EB382DC5E for ; Wed, 29 Nov 2023 21:56:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 496EB382DC5E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 496EB382DC5E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=128.119.240.3 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701294997; cv=none; b=kjhpaeMMr0cTLjFcRuOsgduEwDabFDc9Iza1cJDYr4F0GMNuZxdkfPB2zAK6QzlP03cyHTKbJrMPh4tD0D6BRfkM/4anGmJrz90Pp5AjYLgqEITUnSVtF1DDaEKHGGSpKpHiU11YCLWbVkLuapctM0RRy3VCqb7wKUo5vkGEjiE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701294997; c=relaxed/simple; bh=6d1YgZMGcmqE03Rb1UOCV1a6cLhR4K0Te+/fm7P/he8=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=UmhSlJq9z9zNEBlxoaMRLCXdvvZo2HaJcwn3o5JaFqUhOZ51+fHBVUJ/PH5zyIx1Or02DSVUvQe9zoaDS1UZID5OCELAMO5e9SxMM537/12HxhfieWiEnhs9BhbChlIGW+KdUDJoWKDMqVNgwp/KiqnaMN0blRMuOzjuq44HjS4= ARC-Authentication-Results: i=1; server2.sourceware.org X-ASG-Debug-ID: 1701294993-24039d196d11e5c60001-w5GHUG Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by barramail.cs.umass.edu with ESMTP id 19ugfIxvfFAaBhiM (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 29 Nov 2023 16:56:33 -0500 (EST) X-Barracuda-Envelope-From: moss@cs.umass.edu X-Barracuda-RBL-Trusted-Forwarder: 128.119.240.136 Received: from [172.26.65.13] (unknown [172.26.65.13]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id C797440170B3; Wed, 29 Nov 2023 16:56:33 -0500 (EST) Message-ID: <44f3d9cd-3e55-c59c-713c-0c74affd764f@cs.umass.edu> X-Barracuda-RBL-Trusted-Forwarder: 172.26.65.13 Date: Wed, 29 Nov 2023 16:56:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: Cygwin 3.4.9 - how to install ssh-keygen To: Jose Isaias Cabrera , "cygwin@cygwin.com" , "Matthias@gmx.at" X-ASG-Orig-Subj: Re: Cygwin 3.4.9 - how to install ssh-keygen References: <87jzq5y8nc.fsf@Gerda.invalid> <4ae9d8388563c8b6c82801815b9c12ab9fca7081.camel@gmx.at> <02eb842d-e2c7-4536-9602-67475d1804a7@Shaw.ca> <06a79feabf5e8906c14a02f2396212a80af9e6d9.camel@gmx.at> Content-Language: en-US From: Eliot Moss In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136] X-Barracuda-Start-Time: 1701294993 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://barramail.cs.umass.edu:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at cs.umass.edu X-Barracuda-Scan-Msg-Size: 7892 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.7 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.117438 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 11/29/2023 4:13 PM, Jose Isaias Cabrera via Cygwin wrote: > On Monday, November 27, 2023 02:46 AM, Matthias--- expressed: >> >> Am Sonntag, dem 26.11.2023 um 12:21 -0700 schrieb Brian Inglis via Cygwin: >>> On 2023-11-26 10:12, Matthias--- via Cygwin wrote: >>>> Am Samstag, dem 25.11.2023 um 19:45 +0100 schrieb ASSI via Cygwin: >>>>> Matthias--- via Cygwin writes: >>>>>> Yes - That's the reason in my VM too: >>>>>> strace ssh-keygen -A > >> A/V is Antivirus? My VM is running Avira. Deactivating it >> haven't impact on ssh-keygen. I still have >> an Segmentation fault. > > Pardon the high jacking of this threat, but I may have the same problem (or, at least, it's related). I can start another thread if it is desired... > > I am having the same problem with ssh. So, a little history... This is a fresh Windows 11 Cygwin installation. Everything works great, except using ssh. For example, when I type, > > jcabrera@jicman ~ > $ ssh jic@web > > jcabrera@jicman ~ > $ > > I get the prompt right away. I found out that Windows 11 comes with OpenSSH installed. I uninstalled it, rebooted, and reinstalled cygwin's openssh, and the problem is still there. I don't have any antivirus, except Microsoft's Defender, but I added two folder exclussions (c:\cygwin64 and the download folder for xmission download site). The strace of ssh is pretty long: > > == beg strace ssh == > $ strace ssh > --- Process 23800 created > --- Process 23800 loaded C:\Windows\System32\ntdll.dll at 00007ffe22410000 > --- Process 23800 loaded C:\Windows\System32\kernel32.dll at 00007ffe20e20000 > --- Process 23800 loaded C:\Windows\System32\KernelBase.dll at 00007ffe1f780000 > --- Process 23800 loaded C:\cygwin64\bin\cygcrypto-1.1.dll at 00000003f6ce0000 > --- Process 23800 loaded C:\cygwin64\bin\cygwin1.dll at 00007ffd8efa0000 > --- Process 23800 loaded C:\cygwin64\bin\cyggssapi_krb5-2.dll at 00000003f40d0000 > --- Process 23800 loaded C:\cygwin64\bin\cygz.dll at 00000003ee230000 > --- Process 23800 loaded C:\cygwin64\bin\cyggcc_s-seh-1.dll at 00000003f4c30000 > --- Process 23800 loaded C:\cygwin64\bin\cygk5crypto-3.dll at 00000003f0f00000 > --- Process 23800 loaded C:\cygwin64\bin\cygkrb5-3.dll at 00000003f0e30000 > --- Process 23800 loaded C:\cygwin64\bin\cygkrb5support-0.dll at 00000003f0e10000 > --- Process 23800 loaded C:\cygwin64\bin\cygcom_err-2.dll at 00000003f7240000 > --- Process 23800 loaded C:\cygwin64\bin\cygintl-8.dll at 00000003f12e0000 > --- Process 23800 loaded C:\cygwin64\bin\cygiconv-2.dll at 00000003f3170000 > 1 1 [main] ssh (23800) ********************************************** > 94 95 [main] ssh (23800) Program name: C:\cygwin64\bin\ssh.exe (windows pid 23800) > 59 154 [main] ssh (23800) OS version: Windows NT-10.0 > 78 232 [main] ssh (23800) ********************************************** > --- Process 23800 loaded C:\Windows\System32\advapi32.dll at 00007ffe202b0000 > --- Process 23800 loaded C:\Windows\System32\msvcrt.dll at 00007ffe20d40000 > --- Process 23800 loaded C:\Windows\System32\sechost.dll at 00007ffe203a0000 > --- Process 23800 loaded C:\Windows\System32\rpcrt4.dll at 00007ffe22030000 > --- Process 23800 loaded C:\Windows\System32\cryptbase.dll at 00007ffe1efd0000 > --- Process 23800 loaded C:\Windows\System32\bcryptprimitives.dll at 00007ffe1fc50000 > 9439 9671 [main] ssh (23800) sigprocmask: 0 = sigprocmask (0, 0x0, 0x7FFD8F2793B0) > 439 10110 [main] ssh (23800) open_shared: name shared.5, shared 0x1A0000000 (wanted 0x1A0000000), h 0x118, m 0, created 0 > 152 10262 [main] ssh (23800) user_heap_info::init: heap base 0xA00000000, heap top 0xA00000000, heap size 0x20000000 (536870912) > 76 10338 [main] ssh (23800) open_shared: name S-1-5-21-1074337292-3126344265-1178006881-1002.1, shared 0x1A1000000 (wanted 0x1A1000000), h 0x114, m 1, created 0 > 87 10425 [main] ssh (23800) user_info::create: opening user shared for 'S-1-5-21-1074337292-3126344265-1178006881-1002' at 0x1A1000000 > 73 10498 [main] ssh (23800) user_info::create: user shared version AB1FCCE8 > 74 10572 [main] ssh (23800) fhandler_pipe::create: name \\.\pipe\cygwin-e022582115c10879-23800-sigwait, size 11440, mode PIPE_TYPE_MESSAGE > 86 10658 [main] ssh (23800) fhandler_pipe::create: pipe read handle 0x12C > 52 10710 [main] ssh (23800) fhandler_pipe::create: CreateFile: name \\.\pipe\cygwin-e022582115c10879-23800-sigwait > 71 10781 [main] ssh (23800) fhandler_pipe::create: pipe write handle 0x130 > 55 10836 [main] ssh (23800) dll_crt0_0: finished dll_crt0_0 initialization > --- Process 23800 loaded C:\Program Files (x86)\Citrix\ICA Client\epclient64.dll at 00007ffe00070000 > --- Process 23800 loaded C:\Windows\System32\user32.dll at 00007ffe21e20000 > --- Process 23800 loaded C:\Windows\System32\win32u.dll at 00007ffe20130000 > --- Process 23800 loaded C:\Windows\System32\gdi32.dll at 00007ffe20df0000 > --- Process 23800 loaded C:\Windows\System32\gdi32full.dll at 00007ffe1fea0000 > --- Process 23800 loaded C:\Windows\System32\msvcp_win.dll at 00007ffe1fcd0000 > --- Process 23800 loaded C:\Windows\System32\ucrtbase.dll at 00007ffe1fb30000 > --- Process 23800 loaded C:\Windows\System32\combase.dll at 00007ffe21a90000 > --- Process 23800 loaded C:\Windows\System32\version.dll at 00007ffe0b1f0000 > --- Process 23800 loaded C:\Windows\System32\bcrypt.dll at 00007ffe1f130000 > --- Process 23800 loaded C:\Windows\System32\imm32.dll at 00007ffe204e0000 > --- Process 23800 loaded C:\Windows\System32\ntmarta.dll at 00007ffe1e850000 > --- Process 23800 thread 15480 created > --- Process 23800 thread 15424 created > --- Process 23800, exception c0000005 at 00007ffd8f028094 > --- Process 23800 thread 21708 created > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > [clip like entries] > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > --- Process 23800 thread 15480 exited with status 0x0 > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > [clip] > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > --- Process 23800 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffe1e7d0000 > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > [clip] > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > --- Process 23800 thread 21708 exited with status 0x0 > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > [clip an inmense amount of lines like the one just above this line] > --- Process 23800, exception c0000005 at 00007ffd8efc0a5c > --- Process 23800 thread 22168 exited with status 0xc0000005 > --- Process 23800 exited with status 0xc0000005 > Segmentation fault > > jcabrera@jicman ~ > $ > == end strace ssh == > > This is the version installed: > $ uname -a > CYGWIN_NT-10.0-22631 jicman 3.4.10-1.x86_64 2023-11-29 12:12 UTC x86_64 Cygwin > > Here is MS stuff: > == beg MS Stuff == > $ systeminfo > > Host Name: JICMAN > OS Name: Microsoft Windows 11 Pro > OS Version: 10.0.22631 N/A Build 22631 > OS Manufacturer: Microsoft Corporation > OS Configuration: Standalone Workstation > ==end MS Stuff== > > Thoughts anyone? > I think a clue here is that when *I* run Cygwin's ssh, which is successful, I do not see ntmarta.dll. This makes me wonder if it is something about that, and also if it is something about the permissions on your .ssh folder and files in it, about library search order, etc. Best - EM