public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@Shaw.ca>
To: cygwin@cygwin.com
Subject: Re: Cygwin 3.4.9 - how to install ssh-keygen
Date: Wed, 29 Nov 2023 14:38:01 -0700	[thread overview]
Message-ID: <99bf24dc-1c8f-4485-aad6-faee8ffb14d8@Shaw.ca> (raw)
In-Reply-To: <DB9P251MB006387A4F7489597E4C8C34DDE83A@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>

On 2023-11-29 14:13, 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==

Make sure none of the ssh bits are running and add a system startup scheduled 
task to shut them down and perhaps also start Cygwin services e.g.

$ sc queryex state= all | grep -i ssh 
SERVICE_NAME: ssh-agent
DISPLAY_NAME: OpenSSH Authentication Agent
SERVICE_NAME: sshd
DISPLAY_NAME: OpenSSH SSH Server
SERVICE_NAME: SshdBroker
DISPLAY_NAME: SshdBroker
$ for s in ssh{d,dbroker,-agent}; do sc queryex $s; done

SERVICE_NAME: sshd
         TYPE               : 10  WIN32_OWN_PROCESS
         STATE              : 1  STOPPED
         WIN32_EXIT_CODE    : 1077  (0x435)
         SERVICE_EXIT_CODE  : 0  (0x0)
         CHECKPOINT         : 0x0
         WAIT_HINT          : 0x0
         PID                : 0
         FLAGS              :

SERVICE_NAME: sshdbroker
         TYPE               : 20  WIN32_SHARE_PROCESS
         STATE              : 1  STOPPED
         WIN32_EXIT_CODE    : 1077  (0x435)
         SERVICE_EXIT_CODE  : 0  (0x0)
         CHECKPOINT         : 0x0
         WAIT_HINT          : 0x0
         PID                : 0
         FLAGS              :

SERVICE_NAME: ssh-agent
         TYPE               : 10  WIN32_OWN_PROCESS
         STATE              : 1  STOPPED
         WIN32_EXIT_CODE    : 1077  (0x435)
         SERVICE_EXIT_CODE  : 0  (0x0)
         CHECKPOINT         : 0x0
         WAIT_HINT          : 0x0
         PID                : 0
         FLAGS              :
$ for s in ssh{d,dbroker,-agent}; do
	sc stop		$s
	sleep 1
	net stop	$s
	sleep 1
	sc config	$srv start= disabled
	sc qc		$s
	sc queryex	$s
done

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

  reply	other threads:[~2023-11-29 21:38 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-20 16:54 Matthias@gmx.li
2023-11-20 17:16 ` Hans-Bernhard Bröker
2023-11-20 22:41 ` Lee
2023-11-21  8:19   ` Matthias@gmx.li
     [not found]   ` <CAObURJv33N9LRgB-47V2pPguGk0eKw+om29Ft80dNurVWPZPDw@mail.gmail.com>
2023-11-21 19:07     ` Fwd: " Hans-Bernhard Bröker
2023-11-21 19:35       ` Lee
2023-11-27  6:22   ` Marco Atzeri
2023-11-22  2:23 ` Brian Inglis
2023-11-22  7:40   ` Matthias@gmx.li
2023-11-22 15:23     ` Brian Inglis
2023-11-23  8:15       ` Matthias@gmx.li
2023-11-23 16:50         ` René Berber
2023-11-24 11:31 ` Matthias@gmx.li
2023-11-24 16:57   ` EXTERNAL SENDER: " Dale Lobb (Sys Admin)
2023-11-25 16:12     ` Matthias@gmx.li
2023-11-25 18:45       ` ASSI
2023-11-26 17:12         ` Matthias@gmx.at
2023-11-26 19:21           ` Brian Inglis
2023-11-27  7:46             ` Matthias@gmx.at
2023-11-28 23:37               ` Brian Inglis
2023-11-30 13:16                 ` Cygwin 3.4.9 - how to install ssh-keygen - solved Matthias@gmx.at
2023-11-30 19:18                   ` Jose Isaias Cabrera
2023-11-29 21:13               ` Cygwin 3.4.9 - how to install ssh-keygen Jose Isaias Cabrera
2023-11-29 21:38                 ` Brian Inglis [this message]
2023-11-29 21:58                   ` Jose Isaias Cabrera
2023-11-29 22:40                     ` Brian Inglis
2023-11-29 21:56                 ` Eliot Moss
2023-11-29 22:30                 ` René Berber
2023-11-29 22:46                   ` Brian Inglis
2023-11-30  1:03                     ` Jose Isaias Cabrera
2023-11-30  1:33                       ` Ken Brown
2023-11-30  8:00                       ` Eirik Nordbrøden
2023-11-30 19:20                         ` Jose Isaias Cabrera
2023-11-30 19:53                       ` Jose Isaias Cabrera
2023-11-24 18:13   ` René Berber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99bf24dc-1c8f-4485-aad6-faee8ffb14d8@Shaw.ca \
    --to=brian.inglis@shaw.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).