* Cygwin 3.4.9 - how to install ssh-keygen
@ 2023-11-20 16:54 Matthias@gmx.li
2023-11-20 17:16 ` Hans-Bernhard Bröker
` (3 more replies)
0 siblings, 4 replies; 35+ messages in thread
From: Matthias@gmx.li @ 2023-11-20 16:54 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 686 bytes --]
Dear all,
I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal as Administrator and
run ssh-host-config.
* Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
* Answered "no" to use StrictMode
* and "yes" to install sshd as a service
* I just press <enter> for the question for "Value of CYGWIN for the daemon".
cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
Unfortunately I can't find ssh-keygen in the installable packages.
Howto install ssh-keygen or how to create hostkeys?
Thanks in advance
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-20 16:54 Cygwin 3.4.9 - how to install ssh-keygen Matthias@gmx.li
@ 2023-11-20 17:16 ` Hans-Bernhard Bröker
2023-11-20 22:41 ` Lee
` (2 subsequent siblings)
3 siblings, 0 replies; 35+ messages in thread
From: Hans-Bernhard Bröker @ 2023-11-20 17:16 UTC (permalink / raw)
To: cygwin
Am 20.11.2023 um 17:54 schrieb Matthias--- via Cygwin:
> Unfortunately I can't find ssh-keygen in the installable packages.
That's quite strange, given ssh-keygen is clearly right there in that
openssh package:
$ cygcheck -f /usr/bin/ssh-keygen.exe
openssh-9.5p1-1
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-20 16:54 Cygwin 3.4.9 - how to install ssh-keygen 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
` (2 more replies)
2023-11-22 2:23 ` Brian Inglis
2023-11-24 11:31 ` Matthias@gmx.li
3 siblings, 3 replies; 35+ messages in thread
From: Lee @ 2023-11-20 22:41 UTC (permalink / raw)
To: Matthias@gmx.li; +Cc: cygwin
On Mon, Nov 20, 2023 at 11:54 AM Matthias wrote:
>
> Dear all,
>
> I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal as Administrator and
> run ssh-host-config.
> * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> * Answered "no" to use StrictMode
> * and "yes" to install sshd as a service
> * I just press <enter> for the question for "Value of CYGWIN for the daemon".
> cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
>
> Unfortunately I can't find ssh-keygen in the installable packages.
> Howto install ssh-keygen or how to create hostkeys?
The easy way to see if it's already installed
$ which ssh-keygen
/usr/bin/ssh-keygen
If no, Cygwin is a bit of a pain when looking for a program that's
included in another package.
There's probably a better way, but I use the cygwin package search - eg:
https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ssh-keygen
and then take a guess as the most likely candidate in the results list
and click on that link to see if it's included in that package - eg
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fopenssh%2Fopenssh-9.5p1-1&grep=ssh-keygen
Regards
Lee
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-20 22:41 ` Lee
@ 2023-11-21 8:19 ` Matthias@gmx.li
[not found] ` <CAObURJv33N9LRgB-47V2pPguGk0eKw+om29Ft80dNurVWPZPDw@mail.gmail.com>
2023-11-27 6:22 ` Marco Atzeri
2 siblings, 0 replies; 35+ messages in thread
From: Matthias@gmx.li @ 2023-11-21 8:19 UTC (permalink / raw)
To: Lee; +Cc: cygwin
Thanks, I found it.
It is still not working. I'll ask for it in another thread with a better subject :)
Thanks a lot
Matthias
Am Montag, dem 20.11.2023 um 17:41 -0500 schrieb Lee:
> On Mon, Nov 20, 2023 at 11:54 AM Matthias wrote:
> >
> > Dear all,
> >
> > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal as Administrator
> > and
> > run ssh-host-config.
> > * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > * Answered "no" to use StrictMode
> > * and "yes" to install sshd as a service
> > * I just press <enter> for the question for "Value of CYGWIN for the daemon".
> > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
> >
> > Unfortunately I can't find ssh-keygen in the installable packages.
> > Howto install ssh-keygen or how to create hostkeys?
>
> The easy way to see if it's already installed
> $ which ssh-keygen
> /usr/bin/ssh-keygen
>
> If no, Cygwin is a bit of a pain when looking for a program that's
> included in another package.
>
> There's probably a better way, but I use the cygwin package search - eg:
> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ssh-keygen
> and then take a guess as the most likely candidate in the results list
> and click on that link to see if it's included in that package - eg
>
> https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fopenssh%2Fopenssh-9.5p1-1&grep=ssh-keygen
>
>
> Regards
> Lee
^ permalink raw reply [flat|nested] 35+ messages in thread
* Fwd: Cygwin 3.4.9 - how to install ssh-keygen
[not found] ` <CAObURJv33N9LRgB-47V2pPguGk0eKw+om29Ft80dNurVWPZPDw@mail.gmail.com>
@ 2023-11-21 19:07 ` Hans-Bernhard Bröker
2023-11-21 19:35 ` Lee
0 siblings, 1 reply; 35+ messages in thread
From: Hans-Bernhard Bröker @ 2023-11-21 19:07 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1850 bytes --]
I can't see a command like
cygcheck -p ssh-keygen
as noticeably more cumbersome than comparable commands of other
distributions
Lee via Cygwin <cygwin@cygwin.com> schrieb am Mo., 20. Nov. 2023, 23:42:
> On Mon, Nov 20, 2023 at 11:54 AM Matthias wrote:
> >
> > Dear all,
> >
> > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > After installing defaults plus openssh 9.5p 1-1, I open the
> Cygwin64-Terminal as Administrator and
> > run ssh-host-config.
> > * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > * Answered "no" to use StrictMode
> > * and "yes" to install sshd as a service
> > * I just press <enter> for the question for "Value of CYGWIN for the
> daemon".
> > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no
> hostkeys available".
> >
> > Unfortunately I can't find ssh-keygen in the installable packages.
> > Howto install ssh-keygen or how to create hostkeys?
>
> The easy way to see if it's already installed
> $ which ssh-keygen
> /usr/bin/ssh-keygen
>
> If no, Cygwin is a bit of a pain when looking for a program that's
> included in another package.
>
> There's probably a better way, but I use the cygwin package search - eg:
> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ssh-keygen
> and then take a guess as the most likely candidate in the results list
> and click on that link to see if it's included in that package - eg
>
> https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fopenssh%2Fopenssh-9.5p1-1&grep=ssh-keygen
>
>
> Regards
> Lee
>
> --
> Problem reports: https://cygwin.com/problems.html
> FAQ: https://cygwin.com/faq/
> Documentation: https://cygwin.com/docs.html
> Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
>
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-21 19:07 ` Fwd: " Hans-Bernhard Bröker
@ 2023-11-21 19:35 ` Lee
0 siblings, 0 replies; 35+ messages in thread
From: Lee @ 2023-11-21 19:35 UTC (permalink / raw)
To: Hans-Bernhard Bröker; +Cc: cygwin
On Tue, Nov 21, 2023 at 2:07 PM Hans-Bernhard Bröker wrote:
>
> I can't see a command like
>
> cygcheck -p ssh-keygen
>
> as noticeably more cumbersome than comparable commands of other
> distributions
But you _can_ see/realize the implications of that command :)
I did a 'man cygcheck' before posting my reply, but somehow didn't notice
-p, --package-query search for REGEXP in the entire
cygwin.com package
repository (requires internet connectivity)
which, in hindsight, seems really obvious but somehow I did miss it so
thanks for pointing it out!
Regards,
Lee
>
> Lee via Cygwin <cygwin@cygwin.com> schrieb am Mo., 20. Nov. 2023, 23:42:
>
> > On Mon, Nov 20, 2023 at 11:54 AM Matthias wrote:
> > >
> > > Dear all,
> > >
> > > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > > After installing defaults plus openssh 9.5p 1-1, I open the
> > Cygwin64-Terminal as Administrator and
> > > run ssh-host-config.
> > > * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > > * Answered "no" to use StrictMode
> > > * and "yes" to install sshd as a service
> > > * I just press <enter> for the question for "Value of CYGWIN for the
> > daemon".
> > > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no
> > hostkeys available".
> > >
> > > Unfortunately I can't find ssh-keygen in the installable packages.
> > > Howto install ssh-keygen or how to create hostkeys?
> >
> > The easy way to see if it's already installed
> > $ which ssh-keygen
> > /usr/bin/ssh-keygen
> >
> > If no, Cygwin is a bit of a pain when looking for a program that's
> > included in another package.
> >
> > There's probably a better way, but I use the cygwin package search - eg:
> > https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ssh-keygen
> > and then take a guess as the most likely candidate in the results list
> > and click on that link to see if it's included in that package - eg
> >
> > https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fopenssh%2Fopenssh-9.5p1-1&grep=ssh-keygen
> >
> >
> > Regards
> > Lee
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-20 16:54 Cygwin 3.4.9 - how to install ssh-keygen Matthias@gmx.li
2023-11-20 17:16 ` Hans-Bernhard Bröker
2023-11-20 22:41 ` Lee
@ 2023-11-22 2:23 ` Brian Inglis
2023-11-22 7:40 ` Matthias@gmx.li
2023-11-24 11:31 ` Matthias@gmx.li
3 siblings, 1 reply; 35+ messages in thread
From: Brian Inglis @ 2023-11-22 2:23 UTC (permalink / raw)
To: cygwin; +Cc: Matthias@gmx.li
On 2023-11-20 09:54, Matthias--- via Cygwin wrote:
> Dear all,
>
> I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal as Administrator and
> run ssh-host-config.
> * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> * Answered "no" to use StrictMode
> * and "yes" to install sshd as a service
> * I just press <enter> for the question for "Value of CYGWIN for the daemon".
> cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
>
> Unfortunately I can't find ssh-keygen in the installable packages.
> Howto install ssh-keygen or how to create hostkeys?
Delete any manually created directories as permissions are likely wrong then run
$ /usr/bin/ssh-user-config
--
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
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-22 2:23 ` Brian Inglis
@ 2023-11-22 7:40 ` Matthias@gmx.li
2023-11-22 15:23 ` Brian Inglis
0 siblings, 1 reply; 35+ messages in thread
From: Matthias@gmx.li @ 2023-11-22 7:40 UTC (permalink / raw)
To: cygwin
Am Dienstag, dem 21.11.2023 um 19:23 -0700 schrieb Brian Inglis:
> On 2023-11-20 09:54, Matthias--- via Cygwin wrote:
> > Dear all,
> >
> > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal as Administrator
> > and
> > run ssh-host-config.
> > * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > * Answered "no" to use StrictMode
> > * and "yes" to install sshd as a service
> > * I just press <enter> for the question for "Value of CYGWIN for the daemon".
> > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
> >
> > Unfortunately I can't find ssh-keygen in the installable packages.
> > Howto install ssh-keygen or how to create hostkeys?
>
> Delete any manually created directories as permissions are likely wrong then run
>
> $ /usr/bin/ssh-user-config
>
Thank you,
$HOME/.ssh has been created with id_dsa and id_dsa.pub
rsa and ecdsa hasn't been created also if it said "*** Info: Generating /home/meyer/.ssh/id_..."
Br
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-22 7:40 ` Matthias@gmx.li
@ 2023-11-22 15:23 ` Brian Inglis
2023-11-23 8:15 ` Matthias@gmx.li
0 siblings, 1 reply; 35+ messages in thread
From: Brian Inglis @ 2023-11-22 15:23 UTC (permalink / raw)
To: cygwin; +Cc: Matthias@gmx.li
On 2023-11-22 00:40, Matthias--- via Cygwin wrote:
> Am Dienstag, dem 21.11.2023 um 19:23 -0700 schrieb Brian Inglis:
>> On 2023-11-20 09:54, Matthias--- via Cygwin wrote:
>>> Dear all,
>>>
>>> I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
>>> After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal as Administrator
>>> and
>>> run ssh-host-config.
>>> * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
>>> * Answered "no" to use StrictMode
>>> * and "yes" to install sshd as a service
>>> * I just press <enter> for the question for "Value of CYGWIN for the daemon".
>>> cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
>>>
>>> Unfortunately I can't find ssh-keygen in the installable packages.
>>> Howto install ssh-keygen or how to create hostkeys?
>>
>> Delete any manually created directories as permissions are likely wrong then run
>>
>> $ /usr/bin/ssh-user-config
>>
> Thank you,
> $HOME/.ssh has been created with id_dsa and id_dsa.pub
> rsa and ecdsa hasn't been created also if it said "*** Info: Generating /home/meyer/.ssh/id_..."
Now you can securely use ssh-keygen -A to create all default host key types or
ssh-keygen -t TYPE -a ROUNDS -b BITS -c for keys of any types and strengths you
wish.
--
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
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-22 15:23 ` Brian Inglis
@ 2023-11-23 8:15 ` Matthias@gmx.li
2023-11-23 16:50 ` René Berber
0 siblings, 1 reply; 35+ messages in thread
From: Matthias@gmx.li @ 2023-11-23 8:15 UTC (permalink / raw)
To: cygwin
Am Mittwoch, dem 22.11.2023 um 08:23 -0700 schrieb Brian Inglis:
> On 2023-11-22 00:40, Matthias--- via Cygwin wrote:
> > Am Dienstag, dem 21.11.2023 um 19:23 -0700 schrieb Brian Inglis:
> > > On 2023-11-20 09:54, Matthias--- via Cygwin wrote:
> > > > Dear all,
> > > >
> > > > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > > > After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal as
> > > > Administrator
> > > > and
> > > > run ssh-host-config.
> > > > * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > > > * Answered "no" to use StrictMode
> > > > * and "yes" to install sshd as a service
> > > > * I just press <enter> for the question for "Value of CYGWIN for the daemon".
> > > > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
> > > >
> > > > Unfortunately I can't find ssh-keygen in the installable packages.
> > > > Howto install ssh-keygen or how to create hostkeys?
> > >
> > > Delete any manually created directories as permissions are likely wrong then run
> > >
> > > $ /usr/bin/ssh-user-config
> > >
> > Thank you,
> > $HOME/.ssh has been created with id_dsa and id_dsa.pub
> > rsa and ecdsa hasn't been created also if it said "*** Info: Generating /home/meyer/.ssh/id_..."
>
> Now you can securely use ssh-keygen -A to create all default host key types or
> ssh-keygen -t TYPE -a ROUNDS -b BITS -c for keys of any types and strengths you
> wish.
>
Hello
It isn't working for me :)
I run ssh-user-config. It asked me which keys I like to create and if I like to add them to
authorized_keys.
$ /usr/bin/ssh-user-config
*** Query: Shall I create a SSH2 RSA identity file for you? (yes/no) yes
*** Info: Generating /home/meyer/.ssh/id_rsa
*** Query: Do you want to use this identity to login to this machine? (yes/no) yes
*** Info: Adding to /home/meyer/.ssh/authorized_keys
cat: /home/meyer/.ssh/id_rsa.pub: No such file or directory
*** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) yes
*** Info: Generating /home/meyer/.ssh/id_dsa
*** Query: Do you want to use this identity to login to this machine? (yes/no) yes
*** Info: Adding to /home/meyer/.ssh/authorized_keys
cat: /home/meyer/.ssh/id_dsa.pub: No such file or directory
*** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) yes
*** Info: Generating /home/meyer/.ssh/id_ecdsa
*** Query: Do you want to use this identity to login to this machine? (yes/no) yes
*** Info: Adding to /home/meyer/.ssh/authorized_keys
cat: /home/meyer/.ssh/id_ecdsa.pub: No such file or directory
*** Query: Shall I create a (deprecated) SSH1 RSA identity file for you? (yes/no) no
*** Info: Configuration finished. Have fun!
It create $HOME/.ssh with an empty authorized_keys and no keys:
$ ls -alh $HOME/.ssh
total 4.0K
drwxr-xr-x 1 meyer Kein 0 Nov 23 09:06 .
drwxr-xr-x 1 meyer Kein 0 Nov 23 09:06 ..
-rw-r--r-- 1 meyer Kein 0 Nov 23 09:06 authorized_keys
Thanks for any hint
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-23 8:15 ` Matthias@gmx.li
@ 2023-11-23 16:50 ` René Berber
0 siblings, 0 replies; 35+ messages in thread
From: René Berber @ 2023-11-23 16:50 UTC (permalink / raw)
To: cygwin
On 11/23/2023 2:15 AM, Matthias--- via Cygwin wrote:
[snip]
> It create $HOME/.ssh with an empty authorized_keys and no keys:
> $ ls -alh $HOME/.ssh
> total 4.0K
> drwxr-xr-x 1 meyer Kein 0 Nov 23 09:06 .
> drwxr-xr-x 1 meyer Kein 0 Nov 23 09:06 ..
> -rw-r--r-- 1 meyer Kein 0 Nov 23 09:06 authorized_keys
No it didn't create ~/.ssh, the permissions are wrong. It was surely
created by you beforehand.
Remove that directory and start again.
--
R.B.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-20 16:54 Cygwin 3.4.9 - how to install ssh-keygen Matthias@gmx.li
` (2 preceding siblings ...)
2023-11-22 2:23 ` Brian Inglis
@ 2023-11-24 11:31 ` Matthias@gmx.li
2023-11-24 16:57 ` EXTERNAL SENDER: " Dale Lobb (Sys Admin)
2023-11-24 18:13 ` René Berber
3 siblings, 2 replies; 35+ messages in thread
From: Matthias@gmx.li @ 2023-11-24 11:31 UTC (permalink / raw)
To: cygwin
Am Montag, dem 20.11.2023 um 17:54 +0100 schrieb Matthias@gmx.li:
> Dear all,
>
> I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal as Administrator and
> run ssh-host-config.
> * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> * Answered "no" to use StrictMode
> * and "yes" to install sshd as a service
> * I just press <enter> for the question for "Value of CYGWIN for the daemon".
> cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
>
> Unfortunately I can't find ssh-keygen in the installable packages.
> Howto install ssh-keygen or how to create hostkeys?
>
> Thanks in advance
> Matthias
>
Hello,
I installed cygwin 3.4.9-1 with all defaults plus openssh 9.5p 1-1 plus rsync 3.2.7-1 in my
virtualbox running on Windows 10 again.
In /var/log/setup.log I found "can't run /etc/postinstall/openssl.sh: No such file"
Anyhow, I opened the Cygwin64-Terminal as Administrator and run ssh-host-config but no host-keys has
been created:
$ ssh-host-config
*** Info: Generating missing SSH host keys
*** Info: Creating default /etc/ssh_config file
*** Info: Creating default /etc/sshd_config file
*** Info: StrictModes is set to 'yes' by default.
*** Info: This is the recommended setting, but it requires that the POSIX
*** Info: permissions of the user's home directory, the user's .ssh
*** Info: directory, and the user's ssh key files are tight so that
*** Info: only the user has write permissions.
*** Info: On the other hand, StrictModes don't work well with default
*** Info: Windows permissions of a home directory mounted with the
*** Info: 'noacl' option, and they don't work at all if the home
*** Info: directory is on a FAT or FAT32 partition.
*** Query: Should StrictModes be used? (yes/no) no
*** Info: Updating /etc/sshd_config file
*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: []
*** Info: The sshd service has been installed under the LocalSystem
*** Info: account (also known as SYSTEM). To start the service now, call
*** Info: `net start cygsshd' or `cygrunsrv -S cygsshd'. Otherwise, it
*** Info: will start automatically after the next reboot.
*** Info: Host configuration finished. Have fun!
$ ls -alh /etc/ssh*
-rw-r--r-- 1 SYSTEM Administratoren 1.5K Nov 24 12:02 /etc/ssh_config
-rw-r--r-- 1 SYSTEM Administratoren 3.1K Nov 24 12:02 /etc/sshd_config
Also running ssh-user-config don't create any keys:
$ ssh-user-config
*** Query: Shall I create a SSH2 RSA identity file for you? (yes/no) yes
*** Info: Generating /home/meyer/.ssh/id_rsa
*** Query: Do you want to use this identity to login to this machine? (yes/no) yes
*** Info: Adding to /home/meyer/.ssh/authorized_keys
cat: /home/meyer/.ssh/id_rsa.pub: No such file or directory
*** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) no
*** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) no
*** Query: Shall I create a (deprecated) SSH1 RSA identity file for you? (yes/no) no
*** Info: Configuration finished. Have fun!
$ ls -alh $HOME/.ssh
total 4.0K
drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 .
drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 ..
-rw-r--r-- 1 meyer Kein 0 Nov 24 12:11 authorized_keys
An indication of an installation/configuration error of ssh-keygen is that also
/usr/bin/ssh-keygen -vvf /etc/ssh_host_rsa_key -N '' -t rsa
don't produce any output. Also if it has return value 0. BTW: Windows OpenSSH isn't installed on my
machine.
René Berber wrote that my files have the wrong permissions. But for shure, /home and /home/meyer has
been created during cygwin installation and /home/meyer/.ssh by ssh-user-config.
Which permissions the directories and files should have?
What could the reason be that ssh-keygen don't create any key? Looks like it wouldn't try it?
Thanks in advance
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* RE: EXTERNAL SENDER: Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-24 11:31 ` Matthias@gmx.li
@ 2023-11-24 16:57 ` Dale Lobb (Sys Admin)
2023-11-25 16:12 ` Matthias@gmx.li
2023-11-24 18:13 ` René Berber
1 sibling, 1 reply; 35+ messages in thread
From: Dale Lobb (Sys Admin) @ 2023-11-24 16:57 UTC (permalink / raw)
To: Matthias@gmx.li, cygwin
> -----Original Message-----
> From: Cygwin <cygwin-bounces+dale.lobb=bryanhealth.org@cygwin.com>
> On Behalf Of Matthias--- via Cygwin
> Sent: Friday, November 24, 2023 5:32 AM
> To: cygwin@cygwin.com
> Subject: EXTERNAL SENDER: Re: Cygwin 3.4.9 - how to install ssh-keygen
>
> Am Montag, dem 20.11.2023 um 17:54 +0100 schrieb mailto:Matthias@gmx.li:
> > Dear all,
> >
> > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-
> Terminal as Administrator and
> > run ssh-host-config.
> > * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > * Answered "no" to use StrictMode
> > * and "yes" to install sshd as a service
> > * I just press <enter> for the question for "Value of CYGWIN for the daemon".
> > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
> >
> > Unfortunately I can't find ssh-keygen in the installable packages.
> > Howto install ssh-keygen or how to create hostkeys?
> >
> > Thanks in advance
> > Matthias
> >
> Hello,
>
> I installed cygwin 3.4.9-1 with all defaults plus openssh 9.5p 1-1 plus rsync
> 3.2.7-1 in my virtualbox running on Windows 10 again.
>
> In /var/log/setup.log I found "can't run /etc/postinstall/openssl.sh: No such file"
> Anyhow, I opened the Cygwin64-Terminal as Administrator and run ssh-host-config
> but no host-keys has been created:
> $ ssh-host-config
>
> *** Info: Generating missing SSH host keys
> *** Info: Creating default /etc/ssh_config file
> *** Info: Creating default /etc/sshd_config file
>
> *** Info: StrictModes is set to 'yes' by default.
> *** Info: This is the recommended setting, but it requires that the POSIX
> *** Info: permissions of the user's home directory, the user's .ssh
> *** Info: directory, and the user's ssh key files are tight so that
> *** Info: only the user has write permissions.
> *** Info: On the other hand, StrictModes don't work well with default
> *** Info: Windows permissions of a home directory mounted with the
> *** Info: 'noacl' option, and they don't work at all if the home
> *** Info: directory is on a FAT or FAT32 partition.
> *** Query: Should StrictModes be used? (yes/no) no
> *** Info: Updating /etc/sshd_config file
>
> *** Query: Do you want to install sshd as a service?
> *** Query: (Say "no" if it is already installed as a service) (yes/no) yes
> *** Query: Enter the value of CYGWIN for the daemon: []
>
> *** Info: The sshd service has been installed under the LocalSystem
> *** Info: account (also known as SYSTEM). To start the service now, call
> *** Info: `net start cygsshd' or `cygrunsrv -S cygsshd'. Otherwise, it
> *** Info: will start automatically after the next reboot.
>
> *** Info: Host configuration finished. Have fun!
>
> $ ls -alh /etc/ssh*
> -rw-r--r-- 1 SYSTEM Administratoren 1.5K Nov 24 12:02 /etc/ssh_config
> -rw-r--r-- 1 SYSTEM Administratoren 3.1K Nov 24 12:02 /etc/sshd_config
>
> Also running ssh-user-config don't create any keys:
> $ ssh-user-config
> *** Query: Shall I create a SSH2 RSA identity file for you? (yes/no) yes
> *** Info: Generating /home/meyer/.ssh/id_rsa
> *** Query: Do you want to use this identity to login to this machine?
> (yes/no) yes
> *** Info: Adding to /home/meyer/.ssh/authorized_keys
> cat: /home/meyer/.ssh/id_rsa.pub: No such file or directory
> *** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) no
> *** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) no
> *** Query: Shall I create a (deprecated) SSH1 RSA identity file for you?
> (yes/no) no
>
> *** Info: Configuration finished. Have fun!
>
> $ ls -alh $HOME/.ssh
> total 4.0K
> drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 .
> drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 ..
> -rw-r--r-- 1 meyer Kein 0 Nov 24 12:11 authorized_keys
>
> An indication of an installation/configuration error of ssh-keygen is that also
> /usr/bin/ssh-keygen -vvf /etc/ssh_host_rsa_key -N '' -t rsa
> don't produce any output. Also if it has return value 0. BTW: Windows
> OpenSSH isn't installed on my
> machine.
>
> René Berber wrote that my files have the wrong permissions. But for shure,
> /home and /home/meyer has
> been created during cygwin installation and /home/meyer/.ssh by ssh-user-
> config.
>
> Which permissions the directories and files should have?
> What could the reason be that ssh-keygen don't create any key? Looks like it
> wouldn't try it?
>
> Thanks in advance
> Matthias
>
>
Try this and look to the end. Is there perhaps a segmentation fault error?
$ strace ssh-keygen
I have a VM with Cygwin installed in it, which used to work for all the installed
packages. However, after a recent update, all binaries linked to openssl now
produce silent segmentation faults. Could be happening to you too.
Best Regards,
Dale
________________________________
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipients and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-24 11:31 ` Matthias@gmx.li
2023-11-24 16:57 ` EXTERNAL SENDER: " Dale Lobb (Sys Admin)
@ 2023-11-24 18:13 ` René Berber
1 sibling, 0 replies; 35+ messages in thread
From: René Berber @ 2023-11-24 18:13 UTC (permalink / raw)
To: cygwin
On 11/24/2023 5:31 AM, Matthias--- via Cygwin wrote:
[snip]
> * Answered "no" to use StrictMode
OK, this makes the .ssh directory have the wrong permissions.
> $ ls -alh $HOME/.ssh
> total 4.0K
> drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 .
> drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 ..
> -rw-r--r-- 1 meyer Kein 0 Nov 24 12:11 authorized_keys
>
[snip]
> Which permissions the directories and files should have?
> What could the reason be that ssh-keygen don't create any key? Looks like it wouldn't try it?
Real question is: Does ssh-keygen work with the wrong permissions?
My understanding is no, it refuses to create keys in those directories.
And later other ssh parts will refuse to use them.
But I might be wrong. The author of ssh-host-config certainly believed
that StrictMode was not necessary.
--
R. B.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
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
0 siblings, 1 reply; 35+ messages in thread
From: Matthias@gmx.li @ 2023-11-25 16:12 UTC (permalink / raw)
To: Dale Lobb (Sys Admin), cygwin
> > -----Original Message-----
> > From: Cygwin <cygwin-bounces+dale.lobb=bryanhealth.org@cygwin.com>
> > On Behalf Of Matthias--- via Cygwin
> > Sent: Friday, November 24, 2023 5:32 AM
> > To: cygwin@cygwin.com
> > Subject: EXTERNAL SENDER: Re: Cygwin 3.4.9 - how to install ssh-keygen
> >
> > Am Montag, dem 20.11.2023 um 17:54 +0100 schrieb mailto:Matthias@gmx.li:
> > > Dear all,
> > >
> > > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > > After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-
> > Terminal as Administrator and
> > > run ssh-host-config.
> > > * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > > * Answered "no" to use StrictMode
> > > * and "yes" to install sshd as a service
> > > * I just press <enter> for the question for "Value of CYGWIN for the daemon".
> > > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys available".
> > >
> > > Unfortunately I can't find ssh-keygen in the installable packages.
> > > Howto install ssh-keygen or how to create hostkeys?
> > >
> > > Thanks in advance
> > > Matthias
> > >
> > Hello,
> >
> > I installed cygwin 3.4.9-1 with all defaults plus openssh 9.5p 1-1 plus rsync
> > 3.2.7-1 in my virtualbox running on Windows 10 again.
> >
> > In /var/log/setup.log I found "can't run /etc/postinstall/openssl.sh: No such file"
> > Anyhow, I opened the Cygwin64-Terminal as Administrator and run ssh-host-config
> > but no host-keys has been created:
> > $ ssh-host-config
> >
> > *** Info: Generating missing SSH host keys
> > *** Info: Creating default /etc/ssh_config file
> > *** Info: Creating default /etc/sshd_config file
> >
> > *** Info: StrictModes is set to 'yes' by default.
> > *** Info: This is the recommended setting, but it requires that the POSIX
> > *** Info: permissions of the user's home directory, the user's .ssh
> > *** Info: directory, and the user's ssh key files are tight so that
> > *** Info: only the user has write permissions.
> > *** Info: On the other hand, StrictModes don't work well with default
> > *** Info: Windows permissions of a home directory mounted with the
> > *** Info: 'noacl' option, and they don't work at all if the home
> > *** Info: directory is on a FAT or FAT32 partition.
> > *** Query: Should StrictModes be used? (yes/no) no
> > *** Info: Updating /etc/sshd_config file
> >
> > *** Query: Do you want to install sshd as a service?
> > *** Query: (Say "no" if it is already installed as a service) (yes/no) yes
> > *** Query: Enter the value of CYGWIN for the daemon: []
> >
> > *** Info: The sshd service has been installed under the LocalSystem
> > *** Info: account (also known as SYSTEM). To start the service now, call
> > *** Info: `net start cygsshd' or `cygrunsrv -S cygsshd'. Otherwise, it
> > *** Info: will start automatically after the next reboot.
> >
> > *** Info: Host configuration finished. Have fun!
> >
> > $ ls -alh /etc/ssh*
> > -rw-r--r-- 1 SYSTEM Administratoren 1.5K Nov 24 12:02 /etc/ssh_config
> > -rw-r--r-- 1 SYSTEM Administratoren 3.1K Nov 24 12:02 /etc/sshd_config
> >
> > Also running ssh-user-config don't create any keys:
> > $ ssh-user-config
> > *** Query: Shall I create a SSH2 RSA identity file for you? (yes/no) yes
> > *** Info: Generating /home/meyer/.ssh/id_rsa
> > *** Query: Do you want to use this identity to login to this machine?
> > (yes/no) yes
> > *** Info: Adding to /home/meyer/.ssh/authorized_keys
> > cat: /home/meyer/.ssh/id_rsa.pub: No such file or directory
> > *** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) no
> > *** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) no
> > *** Query: Shall I create a (deprecated) SSH1 RSA identity file for you?
> > (yes/no) no
> >
> > *** Info: Configuration finished. Have fun!
> >
> > $ ls -alh $HOME/.ssh
> > total 4.0K
> > drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 .
> > drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 ..
> > -rw-r--r-- 1 meyer Kein 0 Nov 24 12:11 authorized_keys
> >
> > An indication of an installation/configuration error of ssh-keygen is that also
> > /usr/bin/ssh-keygen -vvf /etc/ssh_host_rsa_key -N '' -t rsa
> > don't produce any output. Also if it has return value 0. BTW: Windows
> > OpenSSH isn't installed on my
> > machine.
> >
> > René Berber wrote that my files have the wrong permissions. But for shure,
> > /home and /home/meyer has
> > been created during cygwin installation and /home/meyer/.ssh by ssh-user-
> > config.
> >
> > Which permissions the directories and files should have?
> > What could the reason be that ssh-keygen don't create any key? Looks like it
> > wouldn't try it?
> >
> > Thanks in advance
> > Matthias
> >
> >
>
> Try this and look to the end. Is there perhaps a segmentation fault error?
>
> $ strace ssh-keygen
>
> I have a VM with Cygwin installed in it, which used to work for all the installed
> packages. However, after a recent update, all binaries linked to openssl now
> produce silent segmentation faults. Could be happening to you too.
>
> Best Regards,
>
> Dale
>
Yes - That's the reason in my VM too:
strace ssh-keygen -A
:
--- Process 8280 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
--- Process 8280 thread 12528 created
--- Process 8280 thread 15124 created
--- Process 8280 thread 3324 created
--- Process 8280, exception c0000005 at 0000000000000000
--- Process 8280 thread 12528 exited with status 0x0
--- Process 8280 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffcbb550000
--- Process 8280 thread 13908 exited with status 0xc0000005
--- Process 8280 thread 3324 exited with status 0xc0000005
--- Process 8280 exited with status 0xc0000005
Segmentation fault
I've tried to install openssl 1.1.1w-1 instead openssl 3.0.11-1. but it have Segmentation fault too
Is there a way to solve it?
Br
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-25 16:12 ` Matthias@gmx.li
@ 2023-11-25 18:45 ` ASSI
2023-11-26 17:12 ` Matthias@gmx.at
0 siblings, 1 reply; 35+ messages in thread
From: ASSI @ 2023-11-25 18:45 UTC (permalink / raw)
To: cygwin
Matthias--- via Cygwin writes:
> Yes - That's the reason in my VM too:
> strace ssh-keygen -A
> :
> --- Process 8280 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
> --- Process 8280 thread 12528 created
> --- Process 8280 thread 15124 created
> --- Process 8280 thread 3324 created
> --- Process 8280, exception c0000005 at 0000000000000000
> --- Process 8280 thread 12528 exited with status 0x0
> --- Process 8280 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffcbb550000
> --- Process 8280 thread 13908 exited with status 0xc0000005
> --- Process 8280 thread 3324 exited with status 0xc0000005
> --- Process 8280 exited with status 0xc0000005
> Segmentation fault
I'm fairly certain that this is not Cygwin's ssh-keygen…
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-25 18:45 ` ASSI
@ 2023-11-26 17:12 ` Matthias@gmx.at
2023-11-26 19:21 ` Brian Inglis
0 siblings, 1 reply; 35+ messages in thread
From: Matthias@gmx.at @ 2023-11-26 17:12 UTC (permalink / raw)
To: ASSI, cygwin
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
> > :
> > --- Process 8280 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
> > --- Process 8280 thread 12528 created
> > --- Process 8280 thread 15124 created
> > --- Process 8280 thread 3324 created
> > --- Process 8280, exception c0000005 at 0000000000000000
> > --- Process 8280 thread 12528 exited with status 0x0
> > --- Process 8280 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffcbb550000
> > --- Process 8280 thread 13908 exited with status 0xc0000005
> > --- Process 8280 thread 3324 exited with status 0xc0000005
> > --- Process 8280 exited with status 0xc0000005
> > Segmentation fault
>
> I'm fairly certain that this is not Cygwin's ssh-keygen…
>
>
> Regards,
> Achim.
> --
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
>
> Factory and User Sound Singles for Waldorf rackAttack:
> http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
>
I believe it is Cygwin's ssh-keygen because it is loading cygwin dlls too:
strace /usr/bin/ssh-keygen.exe -A
--- Process 14116 created
--- Process 14116 loaded C:\Windows\System32\ntdll.dll at 00007ffcbff90000
--- Process 14116 loaded C:\Windows\System32\kernel32.dll at 00007ffcbe610000
--- Process 14116 loaded C:\Windows\System32\KernelBase.dll at 00007ffcbd710000
--- Process 14116 loaded C:\Windows\System32\apphelp.dll at 00007ffcbaea0000
--- Process 14116 loaded C:\cygwin64\bin\cygcrypto-3.dll at 00000003ff8c0000
--- Process 14116 loaded C:\cygwin64\bin\cygwin1.dll at 00007ffc74c90000
--- Process 14116 loaded C:\cygwin64\bin\cyggcc_s-seh-1.dll at 00000003ff790000
--- Process 14116 loaded C:\cygwin64\bin\cygz.dll at 00000003feb50000
1 1 [main] ssh-keygen (14116) **********************************************
279 280 [main] ssh-keygen (14116) Program name: C:\cygwin64\bin\ssh-keygen.exe (windows pid
14116)
190 470 [main] ssh-keygen (14116) OS version: Windows NT-10.0
125 595 [main] ssh-keygen (14116) **********************************************
--- Process 14116 loaded C:\Windows\System32\advapi32.dll at 00007ffcbfac0000
:
--- Process 14116 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
--- Process 14116 thread 15044 created
--- Process 14116 thread 10544 created
--- Process 14116 thread 13588 created
--- Process 14116, exception c0000005 at 0000000000000000
--- Process 14116 thread 15044 exited with status 0x0
--- Process 14116 thread 10544 exited with status 0xc0000005
--- Process 14116 thread 14316 exited with status 0xc0000005
--- Process 14116 exited with status 0xc0000005
Segmentation fault
The Windows OpenSSH-Client is also installed in my VM:
strace /cygdrive/C/Windows/System32/OpenSSH/ssh-keygen.exe -A
--- Process 12532 created
--- Process 12532 loaded C:\Windows\System32\ntdll.dll at 00007ffcbff90000
--- Process 12532 loaded C:\Windows\System32\kernel32.dll at 00007ffcbe610000
--- Process 12532 loaded C:\Windows\System32\KernelBase.dll at 00007ffcbd710000
--- Process 12532 loaded C:\Windows\System32\apphelp.dll at 00007ffcbaea0000
:
--- Process 12532 loaded C:\Windows\System32\winrnr.dll at 00007ffc77150000
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
--- Process 12532 unloaded DLL at 00007ffc77110000
:
and all keys are created in C:\ProgramData\ssh
So it looks like cygwin ssh-keygen.exe have a problem :(
BTW: similar Segmentation faults I have with "strace /usr/sbin/sshd.exe --help" as well as with
"strace /usr/bin/ssh.exe --help".
Both are loading cygwin dlls like cygcrypt-2.dll or cygiconv-2.dll as well as Windows dlls like
ntdll.dll or kernel32.dll.
Any hints?
Thanks in advance
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-26 17:12 ` Matthias@gmx.at
@ 2023-11-26 19:21 ` Brian Inglis
2023-11-27 7:46 ` Matthias@gmx.at
0 siblings, 1 reply; 35+ messages in thread
From: Brian Inglis @ 2023-11-26 19:21 UTC (permalink / raw)
To: 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
>>> --- Process 8280 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
>>> --- Process 8280 thread 12528 created
>>> --- Process 8280 thread 15124 created
>>> --- Process 8280 thread 3324 created
>>> --- Process 8280, exception c0000005 at 0000000000000000
>>> --- Process 8280 thread 12528 exited with status 0x0
>>> --- Process 8280 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffcbb550000
>>> --- Process 8280 thread 13908 exited with status 0xc0000005
>>> --- Process 8280 thread 3324 exited with status 0xc0000005
>>> --- Process 8280 exited with status 0xc0000005
>>> Segmentation fault
>> I'm fairly certain that this is not Cygwin's ssh-keygen…
> I believe it is Cygwin's ssh-keygen because it is loading cygwin dlls too:
> strace /usr/bin/ssh-keygen.exe -A
> --- Process 14116 created
> --- Process 14116 loaded C:\Windows\System32\ntdll.dll at 00007ffcbff90000
> --- Process 14116 loaded C:\Windows\System32\kernel32.dll at 00007ffcbe610000
> --- Process 14116 loaded C:\Windows\System32\KernelBase.dll at 00007ffcbd710000
> --- Process 14116 loaded C:\Windows\System32\apphelp.dll at 00007ffcbaea0000
> --- Process 14116 loaded C:\cygwin64\bin\cygcrypto-3.dll at 00000003ff8c0000
> --- Process 14116 loaded C:\cygwin64\bin\cygwin1.dll at 00007ffc74c90000
> --- Process 14116 loaded C:\cygwin64\bin\cyggcc_s-seh-1.dll at 00000003ff790000
> --- Process 14116 loaded C:\cygwin64\bin\cygz.dll at 00000003feb50000
> 1 1 [main] ssh-keygen (14116) **********************************************
> 279 280 [main] ssh-keygen (14116) Program name: C:\cygwin64\bin\ssh-keygen.exe (windows pid
> 14116)
> 190 470 [main] ssh-keygen (14116) OS version: Windows NT-10.0
> 125 595 [main] ssh-keygen (14116) **********************************************
> --- Process 14116 loaded C:\Windows\System32\advapi32.dll at 00007ffcbfac0000
> :
> --- Process 14116 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
> --- Process 14116 thread 15044 created
> --- Process 14116 thread 10544 created
> --- Process 14116 thread 13588 created
> --- Process 14116, exception c0000005 at 0000000000000000
> --- Process 14116 thread 15044 exited with status 0x0
> --- Process 14116 thread 10544 exited with status 0xc0000005
> --- Process 14116 thread 14316 exited with status 0xc0000005
> --- Process 14116 exited with status 0xc0000005
> Segmentation fault
>
> The Windows OpenSSH-Client is also installed in my VM:
> strace /cygdrive/C/Windows/System32/OpenSSH/ssh-keygen.exe -A
> --- Process 12532 created
> --- Process 12532 loaded C:\Windows\System32\ntdll.dll at 00007ffcbff90000
> --- Process 12532 loaded C:\Windows\System32\kernel32.dll at 00007ffcbe610000
> --- Process 12532 loaded C:\Windows\System32\KernelBase.dll at 00007ffcbd710000
> --- Process 12532 loaded C:\Windows\System32\apphelp.dll at 00007ffcbaea0000
> :
> --- Process 12532 loaded C:\Windows\System32\winrnr.dll at 00007ffc77150000
> ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
> --- Process 12532 unloaded DLL at 00007ffc77110000
> :
> and all keys are created in C:\ProgramData\ssh
>
> So it looks like cygwin ssh-keygen.exe have a problem :(
> BTW: similar Segmentation faults I have with "strace /usr/sbin/sshd.exe --help" as well as with
> "strace /usr/bin/ssh.exe --help".
> Both are loading cygwin dlls like cygcrypt-2.dll or cygiconv-2.dll as well as Windows dlls like
> ntdll.dll or kernel32.dll.
>
> Any hints?
That intercept does not run under strace on my Win 10 latest patches system.
My strace shows DHCP contacted before running gethostname, then keygens.
Does this system run a legacy A/V?
Add to BLODA? - legacy embedded security provider interface:
https://learn.microsoft.com/en-us/previous-versions/windows/embedded/aa939264(v=winembedded.5)?redirectedfrom=MSDN
--
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
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-20 22:41 ` Lee
2023-11-21 8:19 ` Matthias@gmx.li
[not found] ` <CAObURJv33N9LRgB-47V2pPguGk0eKw+om29Ft80dNurVWPZPDw@mail.gmail.com>
@ 2023-11-27 6:22 ` Marco Atzeri
2 siblings, 0 replies; 35+ messages in thread
From: Marco Atzeri @ 2023-11-27 6:22 UTC (permalink / raw)
To: cygwin
On 20.11.2023 23:41, Lee via Cygwin wrote:
> On Mon, Nov 20, 2023 at 11:54 AM Matthias wrote:
>>
>> Unfortunately I can't find ssh-keygen in the installable packages.
>> Howto install ssh-keygen or how to create hostkeys?
>
> The easy way to see if it's already installed
> $ which ssh-keygen
> /usr/bin/ssh-keygen
>
> If no, Cygwin is a bit of a pain when looking for a program that's
> included in another package.
Hi Lee,
cygcheck can help here as it can ask the Cygwin website
$ cygcheck -p bin/ssh-keygen
Found 6 matches for bin/ssh-keygen
openssh-debuginfo-9.3p2-1 - openssh-debuginfo: Debug info for openssh
openssh-debuginfo-9.4p1-1 - openssh-debuginfo: Debug info for openssh
openssh-debuginfo-9.5p1-1 - openssh-debuginfo: Debug info for openssh
openssh-9.3p2-1 - openssh: The OpenSSH server and client programs
openssh-9.4p1-1 - openssh: The OpenSSH server and client programs
openssh-9.5p1-1 - openssh: The OpenSSH server and client programs
> Regards
> Lee
Regards
Marco
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-26 19:21 ` Brian Inglis
@ 2023-11-27 7:46 ` Matthias@gmx.at
2023-11-28 23:37 ` Brian Inglis
2023-11-29 21:13 ` Cygwin 3.4.9 - how to install ssh-keygen Jose Isaias Cabrera
0 siblings, 2 replies; 35+ messages in thread
From: Matthias@gmx.at @ 2023-11-27 7:46 UTC (permalink / raw)
To: cygwin; +Cc: Brian Inglis
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
> > > > --- Process 8280 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
> > > > --- Process 8280 thread 12528 created
> > > > --- Process 8280 thread 15124 created
> > > > --- Process 8280 thread 3324 created
> > > > --- Process 8280, exception c0000005 at 0000000000000000
> > > > --- Process 8280 thread 12528 exited with status 0x0
> > > > --- Process 8280 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffcbb550000
> > > > --- Process 8280 thread 13908 exited with status 0xc0000005
> > > > --- Process 8280 thread 3324 exited with status 0xc0000005
> > > > --- Process 8280 exited with status 0xc0000005
> > > > Segmentation fault
>
> > > I'm fairly certain that this is not Cygwin's ssh-keygen…
>
> > I believe it is Cygwin's ssh-keygen because it is loading cygwin dlls too:
> > strace /usr/bin/ssh-keygen.exe -A
> > --- Process 14116 created
> > --- Process 14116 loaded C:\Windows\System32\ntdll.dll at 00007ffcbff90000
> > --- Process 14116 loaded C:\Windows\System32\kernel32.dll at 00007ffcbe610000
> > --- Process 14116 loaded C:\Windows\System32\KernelBase.dll at 00007ffcbd710000
> > --- Process 14116 loaded C:\Windows\System32\apphelp.dll at 00007ffcbaea0000
> > --- Process 14116 loaded C:\cygwin64\bin\cygcrypto-3.dll at 00000003ff8c0000
> > --- Process 14116 loaded C:\cygwin64\bin\cygwin1.dll at 00007ffc74c90000
> > --- Process 14116 loaded C:\cygwin64\bin\cyggcc_s-seh-1.dll at 00000003ff790000
> > --- Process 14116 loaded C:\cygwin64\bin\cygz.dll at 00000003feb50000
> > 1 1 [main] ssh-keygen (14116) **********************************************
> > 279 280 [main] ssh-keygen (14116) Program name: C:\cygwin64\bin\ssh-keygen.exe
> > (windows pid
> > 14116)
> > 190 470 [main] ssh-keygen (14116) OS version: Windows NT-10.0
> > 125 595 [main] ssh-keygen (14116) **********************************************
> > --- Process 14116 loaded C:\Windows\System32\advapi32.dll at 00007ffcbfac0000
> > :
> > --- Process 14116 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
> > --- Process 14116 thread 15044 created
> > --- Process 14116 thread 10544 created
> > --- Process 14116 thread 13588 created
> > --- Process 14116, exception c0000005 at 0000000000000000
> > --- Process 14116 thread 15044 exited with status 0x0
> > --- Process 14116 thread 10544 exited with status 0xc0000005
> > --- Process 14116 thread 14316 exited with status 0xc0000005
> > --- Process 14116 exited with status 0xc0000005
> > Segmentation fault
> >
> > The Windows OpenSSH-Client is also installed in my VM:
> > strace /cygdrive/C/Windows/System32/OpenSSH/ssh-keygen.exe -A
> > --- Process 12532 created
> > --- Process 12532 loaded C:\Windows\System32\ntdll.dll at 00007ffcbff90000
> > --- Process 12532 loaded C:\Windows\System32\kernel32.dll at 00007ffcbe610000
> > --- Process 12532 loaded C:\Windows\System32\KernelBase.dll at 00007ffcbd710000
> > --- Process 12532 loaded C:\Windows\System32\apphelp.dll at 00007ffcbaea0000
> > :
> > --- Process 12532 loaded C:\Windows\System32\winrnr.dll at 00007ffc77150000
> > ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
> > --- Process 12532 unloaded DLL at 00007ffc77110000
> > :
> > and all keys are created in C:\ProgramData\ssh
> >
> > So it looks like cygwin ssh-keygen.exe have a problem :(
> > BTW: similar Segmentation faults I have with "strace /usr/sbin/sshd.exe --help" as well as with
> > "strace /usr/bin/ssh.exe --help".
> > Both are loading cygwin dlls like cygcrypt-2.dll or cygiconv-2.dll as well as Windows dlls like
> > ntdll.dll or kernel32.dll.
> >
> > Any hints?
>
> That intercept does not run under strace on my Win 10 latest patches system.
> My strace shows DHCP contacted before running gethostname, then keygens.
>
> Does this system run a legacy A/V?
>
> Add to BLODA? - legacy embedded security provider interface:
>
> https://learn.microsoft.com/en-us/previous-versions/windows/embedded/aa939264(v=winembedded.5)?redirectedfrom=MSDN
>
> --
> 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
A/V is Antivirus? My VM is running Avira. Deactivating it haven't impact on ssh-keygen. I still have
an Segmentation fault.
Br
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
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-29 21:13 ` Cygwin 3.4.9 - how to install ssh-keygen Jose Isaias Cabrera
1 sibling, 1 reply; 35+ messages in thread
From: Brian Inglis @ 2023-11-28 23:37 UTC (permalink / raw)
To: cygwin
On 2023-11-27 00:46, Matthias@gmx.at wrote:
> 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
>>>>> --- Process 8280 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
>>>>> --- Process 8280 thread 12528 created
>>>>> --- Process 8280 thread 15124 created
>>>>> --- Process 8280 thread 3324 created
>>>>> --- Process 8280, exception c0000005 at 0000000000000000
>>>>> --- Process 8280 thread 12528 exited with status 0x0
>>>>> --- Process 8280 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffcbb550000
>>>>> --- Process 8280 thread 13908 exited with status 0xc0000005
>>>>> --- Process 8280 thread 3324 exited with status 0xc0000005
>>>>> --- Process 8280 exited with status 0xc0000005
>>>>> Segmentation fault
>>
>>>> I'm fairly certain that this is not Cygwin's ssh-keygen…
>>
>>> I believe it is Cygwin's ssh-keygen because it is loading cygwin dlls too:
>>> strace /usr/bin/ssh-keygen.exe -A
>>> --- Process 14116 created
>>> --- Process 14116 loaded C:\Windows\System32\ntdll.dll at 00007ffcbff90000
>>> --- Process 14116 loaded C:\Windows\System32\kernel32.dll at 00007ffcbe610000
>>> --- Process 14116 loaded C:\Windows\System32\KernelBase.dll at 00007ffcbd710000
>>> --- Process 14116 loaded C:\Windows\System32\apphelp.dll at 00007ffcbaea0000
>>> --- Process 14116 loaded C:\cygwin64\bin\cygcrypto-3.dll at 00000003ff8c0000
>>> --- Process 14116 loaded C:\cygwin64\bin\cygwin1.dll at 00007ffc74c90000
>>> --- Process 14116 loaded C:\cygwin64\bin\cyggcc_s-seh-1.dll at 00000003ff790000
>>> --- Process 14116 loaded C:\cygwin64\bin\cygz.dll at 00000003feb50000
>>> 1 1 [main] ssh-keygen (14116) **********************************************
>>> 279 280 [main] ssh-keygen (14116) Program name: C:\cygwin64\bin\ssh-keygen.exe
>>> (windows pid
>>> 14116)
>>> 190 470 [main] ssh-keygen (14116) OS version: Windows NT-10.0
>>> 125 595 [main] ssh-keygen (14116) **********************************************
>>> --- Process 14116 loaded C:\Windows\System32\advapi32.dll at 00007ffcbfac0000
>>> :
>>> --- Process 14116 loaded C:\Windows\System32\ntmarta.dll at 00007ffcbc790000
>>> --- Process 14116 thread 15044 created
>>> --- Process 14116 thread 10544 created
>>> --- Process 14116 thread 13588 created
>>> --- Process 14116, exception c0000005 at 0000000000000000
>>> --- Process 14116 thread 15044 exited with status 0x0
>>> --- Process 14116 thread 10544 exited with status 0xc0000005
>>> --- Process 14116 thread 14316 exited with status 0xc0000005
>>> --- Process 14116 exited with status 0xc0000005
>>> Segmentation fault
>>>
>>> The Windows OpenSSH-Client is also installed in my VM:
>>> strace /cygdrive/C/Windows/System32/OpenSSH/ssh-keygen.exe -A
>>> --- Process 12532 created
>>> --- Process 12532 loaded C:\Windows\System32\ntdll.dll at 00007ffcbff90000
>>> --- Process 12532 loaded C:\Windows\System32\kernel32.dll at 00007ffcbe610000
>>> --- Process 12532 loaded C:\Windows\System32\KernelBase.dll at 00007ffcbd710000
>>> --- Process 12532 loaded C:\Windows\System32\apphelp.dll at 00007ffcbaea0000
>>> :
>>> --- Process 12532 loaded C:\Windows\System32\winrnr.dll at 00007ffc77150000
>>> ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
>>> --- Process 12532 unloaded DLL at 00007ffc77110000
>>> :
>>> and all keys are created in C:\ProgramData\ssh
>>>
>>> So it looks like cygwin ssh-keygen.exe have a problem :(
>>> BTW: similar Segmentation faults I have with "strace /usr/sbin/sshd.exe --help" as well as with
>>> "strace /usr/bin/ssh.exe --help".
>>> Both are loading cygwin dlls like cygcrypt-2.dll or cygiconv-2.dll as well as Windows dlls like
>>> ntdll.dll or kernel32.dll.
>>>
>>> Any hints?
>>
>> That intercept does not run under strace on my Win 10 latest patches system.
>> My strace shows DHCP contacted before running gethostname, then keygens.
>>
>> Does this system run a legacy A/V?
>>
>> Add to BLODA? - legacy embedded security provider interface:
>>
>> https://learn.microsoft.com/en-us/previous-versions/windows/embedded/aa939264(v=winembedded.5)?redirectedfrom=MSDN
> A/V is Antivirus? My VM is running Avira. Deactivating it haven't impact on ssh-keygen. I still have
> an Segmentation fault.
Does the cygcheck, ldd, or strace still show ntmarta?
If so, then it is likely the intercept might be installed and need uninstalled
to deactivate!
If you are running Avira Free, I get:
https://www.avira.com/en/free-antivirus-windows
"System Requirements
Your device is not compatible
Operating systems
Microsoft Windows 7 Service Pack 1 or above with the newest updates, hotfixes,
and service packs installed
RAM
2 GB of RAM or more
Disk Space
Minimum 2 GB of free disk space (additional space for temporary and quarantine
files needed)
CPU type
Intel Pentium 4 / AMD Athlon 64 Processor or faster (with support for the SSE2
instructions set)
Browser:
Internet Explorer 11 or newer
Additional requirements
To install, you’ll need administrator rights, an internet connection, and a web
browser. For automatic antivirus updates and optimal malware detection, you’ll
need an internet connection"
So you should try that page from the system with issues, and try something else
if you get the same response, as it appears that is pretty old code running, or
just try something newer like MS Windows Security/Defender/etc.
--
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
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-27 7:46 ` Matthias@gmx.at
2023-11-28 23:37 ` Brian Inglis
@ 2023-11-29 21:13 ` Jose Isaias Cabrera
2023-11-29 21:38 ` Brian Inglis
` (2 more replies)
1 sibling, 3 replies; 35+ messages in thread
From: Jose Isaias Cabrera @ 2023-11-29 21:13 UTC (permalink / raw)
To: cygwin, Matthias@gmx.at
[-- Attachment #1: Type: text/plain, Size: 7296 bytes --]
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?
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-29 21:13 ` Cygwin 3.4.9 - how to install ssh-keygen Jose Isaias Cabrera
@ 2023-11-29 21:38 ` Brian Inglis
2023-11-29 21:58 ` Jose Isaias Cabrera
2023-11-29 21:56 ` Eliot Moss
2023-11-29 22:30 ` René Berber
2 siblings, 1 reply; 35+ messages in thread
From: Brian Inglis @ 2023-11-29 21:38 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-29 21:13 ` Cygwin 3.4.9 - how to install ssh-keygen Jose Isaias Cabrera
2023-11-29 21:38 ` Brian Inglis
@ 2023-11-29 21:56 ` Eliot Moss
2023-11-29 22:30 ` René Berber
2 siblings, 0 replies; 35+ messages in thread
From: Eliot Moss @ 2023-11-29 21:56 UTC (permalink / raw)
To: Jose Isaias Cabrera, cygwin, Matthias@gmx.at
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
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-29 21:38 ` Brian Inglis
@ 2023-11-29 21:58 ` Jose Isaias Cabrera
2023-11-29 22:40 ` Brian Inglis
0 siblings, 1 reply; 35+ messages in thread
From: Jose Isaias Cabrera @ 2023-11-29 21:58 UTC (permalink / raw)
To: cygwin; +Cc: Brian Inglis
[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]
On Wednesday, November 29, 2023 04:38 PM, Brian Inglis expressed:
>
> 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
jcabrera@jicman ~
$ sc queryex state= all | grep -i ssh
No output.
> $ for s in ssh{d,dbroker,-agent}; do sc queryex $s; done
for s in ssh{d,dbroker,-agent}; do sc queryex $s; done
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:
The specified service does not exist as an installed service.
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:
The specified service does not exist as an installed service.
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:
The specified service does not exist as an installed service.
jcabrera@jicman ~
The services do not exists.
> $ 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
jcabrera@jicman ~
$ 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
[SC] OpenService FAILED 1060:
[clipped]
These also failed.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-29 21:13 ` Cygwin 3.4.9 - how to install ssh-keygen Jose Isaias Cabrera
2023-11-29 21:38 ` Brian Inglis
2023-11-29 21:56 ` Eliot Moss
@ 2023-11-29 22:30 ` René Berber
2023-11-29 22:46 ` Brian Inglis
2 siblings, 1 reply; 35+ messages in thread
From: René Berber @ 2023-11-29 22:30 UTC (permalink / raw)
To: cygwin
On 11/29/2023 3:13 PM, Jose Isaias Cabrera via Cygwin wrote:
[snip]
> --- Process 23800 loaded C:\Program Files (x86)\Citrix\ICA Client\epclient64.dll at 00007ffe00070000
[snip]
Try getting rid of Citrix.
Its the only significant difference I see with my working ssh trace (and
all the other Windows libraries that one seems to pull just below the
quoted line).
That seems to produce the crash in the Cygwin dll. Perhaps using some
of the same space?
HTH
--
R. Berber
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-29 21:58 ` Jose Isaias Cabrera
@ 2023-11-29 22:40 ` Brian Inglis
0 siblings, 0 replies; 35+ messages in thread
From: Brian Inglis @ 2023-11-29 22:40 UTC (permalink / raw)
To: cygwin
On 2023-11-29 14:58, Jose Isaias Cabrera wrote:
>
> On Wednesday, November 29, 2023 04:38 PM, Brian Inglis expressed:
>>
>> 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
>
> jcabrera@jicman ~
> $ sc queryex state= all | grep -i ssh
>
> No output.
>
>> $ for s in ssh{d,dbroker,-agent}; do sc queryex $s; done
>
> for s in ssh{d,dbroker,-agent}; do sc queryex $s; done
> [SC] EnumQueryServicesStatus:OpenService FAILED 1060:
>
> The specified service does not exist as an installed service.
>
> [SC] EnumQueryServicesStatus:OpenService FAILED 1060:
>
> The specified service does not exist as an installed service.
>
> [SC] EnumQueryServicesStatus:OpenService FAILED 1060:
>
> The specified service does not exist as an installed service.
>
>
> jcabrera@jicman ~
>
> The services do not exists.
>
>> $ 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
> jcabrera@jicman ~
> $ 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
> [SC] OpenService FAILED 1060:
> [clipped]
>
> These also failed.
Great - there are no (MS) ssh services running on your system, so no conflicts!
--
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
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-29 22:30 ` René Berber
@ 2023-11-29 22:46 ` Brian Inglis
2023-11-30 1:03 ` Jose Isaias Cabrera
0 siblings, 1 reply; 35+ messages in thread
From: Brian Inglis @ 2023-11-29 22:46 UTC (permalink / raw)
To: cygwin
On 2023-11-29 15:30, René Berber via Cygwin wrote:
> On 11/29/2023 3:13 PM, Jose Isaias Cabrera via Cygwin wrote:
>
> [snip]
>> --- Process 23800 loaded C:\Program Files (x86)\Citrix\ICA
>> Client\epclient64.dll at 00007ffe00070000
> [snip]
>
> Try getting rid of Citrix.
>
> Its the only significant difference I see with my working ssh trace (and all the
> other Windows libraries that one seems to pull just below the quoted line).
>
> That seems to produce the crash in the Cygwin dll. Perhaps using some of the
> same space?
Great catch - Citrix is on BLODA as it tries to intercept a lot in every app:
https://cygwin.com/faq/faq.html#faq.using.bloda
links to
https://support.citrix.com/article/CTX107825/how-to-disable-citrix-api-hooks-on-a-perapplication-basis
"Features are implemented by loading a number of DLL modules into the address
space of each application and hooking certain API calls."
Dirty-dirty-dirty! Citrix ;^>
--
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
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-29 22:46 ` Brian Inglis
@ 2023-11-30 1:03 ` Jose Isaias Cabrera
2023-11-30 1:33 ` Ken Brown
` (2 more replies)
0 siblings, 3 replies; 35+ messages in thread
From: Jose Isaias Cabrera @ 2023-11-30 1:03 UTC (permalink / raw)
To: cygwin; +Cc: Brian Inglis
[-- Attachment #1: Type: text/plain, Size: 585 bytes --]
On Wednesday, November 29, 2023 05:46 PM, Brian Inglis expressed:
> Great catch - Citrix is on BLODA as it tries to intercept a lot in every app:
[clip]
> Dirty-dirty-dirty! Citrix ;^>
Well, it's not Citrix. I have Citrix in all my machines (work stuff) and those instances of cygwin work ok. But, in any case, I disabled it, reinstalled everything, and still no luck. However, if I turn off the Windows Firewall, it works. So, now I have to figure that out. If anyone has any ideas, please let me know. I am going to start some internet searches and see what I can find.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
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:53 ` Jose Isaias Cabrera
2 siblings, 0 replies; 35+ messages in thread
From: Ken Brown @ 2023-11-30 1:33 UTC (permalink / raw)
To: cygwin
On 11/29/2023 8:03 PM, Jose Isaias Cabrera via Cygwin wrote:
> On Wednesday, November 29, 2023 05:46 PM, Brian Inglis expressed:
> However, if I turn off the
> Windows Firewall, it works. So, now I have to figure that out.
You need to create a firewall exception for sshd on the machine you're
trying to ssh into.
Ken
^ permalink raw reply [flat|nested] 35+ messages in thread
* RE: Cygwin 3.4.9 - how to install ssh-keygen
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
2 siblings, 1 reply; 35+ messages in thread
From: Eirik Nordbrøden @ 2023-11-30 8:00 UTC (permalink / raw)
To: Jose Isaias Cabrera, cygwin
Hello
I had problems with Cygwin SSH not working after enabling "application protection" in Citrix. Disabling this functionality in Citrix made Cygwin SSH start working again.
Eirik Nordbrøden,
(+47) 90174789
> -----Original Message-----
> From: Cygwin <cygwin-
> bounces+eirik.nordbroden=netnordic.com@cygwin.com> On Behalf Of Jose
> Isaias Cabrera via Cygwin
> Sent: torsdag 30. november 2023 02:03
> To: cygwin <cygwin@cygwin.com>
> Subject: Re: Cygwin 3.4.9 - how to install ssh-keygen
>
> On Wednesday, November 29, 2023 05:46 PM, Brian Inglis expressed:
>
> > Great catch - Citrix is on BLODA as it tries to intercept a lot in every app:
> [clip]
> > Dirty-dirty-dirty! Citrix ;^>
>
> Well, it's not Citrix. I have Citrix in all my machines (work stuff) and those
> instances of cygwin work ok. But, in any case, I disabled it, reinstalled
> everything, and still no luck. However, if I turn off the Windows Firewall, it
> works. So, now I have to figure that out. If anyone has any ideas, please let me
> know. I am going to start some internet searches and see what I can find.
>
>
>
> --
> Problem reports: https://cygwin.com/problems.html
> FAQ: https://cygwin.com/faq/
> Documentation: https://cygwin.com/docs.html
> Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen - solved
2023-11-28 23:37 ` Brian Inglis
@ 2023-11-30 13:16 ` Matthias@gmx.at
2023-11-30 19:18 ` Jose Isaias Cabrera
0 siblings, 1 reply; 35+ messages in thread
From: Matthias@gmx.at @ 2023-11-30 13:16 UTC (permalink / raw)
To: cygwin; +Cc: Brian Inglis
Hello,
After removing Citrix and install it again without "app protection", my segmentation fault has gone.
All is working now :)
It looks like this app protection is the reason for the segmentation fault.
Thank you for all the hints and your support
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen - solved
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
0 siblings, 0 replies; 35+ messages in thread
From: Jose Isaias Cabrera @ 2023-11-30 19:18 UTC (permalink / raw)
To: cygwin, Matthias@gmx.at
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
On Thursday, November 30, 2023 08:16 AM, Matthias--- expressed:
> Hello,
>
> After removing Citrix and install it again without "app protection", my segmentation fault has gone.
> All is working now :)
> It looks like this app protection is the reason for the segmentation fault.
>
>
> Thank you for all the hints and your support
> Matthias
Indeed, Matthias is correct. I re-installed Citrix without the application protection and I am now back on business. Thanks all for the support and willing to help.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
2023-11-30 8:00 ` Eirik Nordbrøden
@ 2023-11-30 19:20 ` Jose Isaias Cabrera
0 siblings, 0 replies; 35+ messages in thread
From: Jose Isaias Cabrera @ 2023-11-30 19:20 UTC (permalink / raw)
To: Eirik Nordbrøden, cygwin
[-- Attachment #1: Type: text/plain, Size: 316 bytes --]
On Thursday, November 30, 2023 03:00 AM, Eirik Nordbrøden expressed:
>
> Hello
>
> I had problems with Cygwin SSH not working after enabling "application protection"
> in Citrix. Disabling this functionality in Citrix made Cygwin SSH start working again.
>
> Eirik Nordbrøden,
This was my problem also.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Cygwin 3.4.9 - how to install ssh-keygen
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:53 ` Jose Isaias Cabrera
2 siblings, 0 replies; 35+ messages in thread
From: Jose Isaias Cabrera @ 2023-11-30 19:53 UTC (permalink / raw)
To: cygwin, Jose Isaias Cabrera
[-- Attachment #1: Type: text/plain, Size: 879 bytes --]
On Wednesday, November 29, 2023 08:03 PM, Jose Isaias Cabrera expressed:
>
> On Wednesday, November 29, 2023 05:46 PM, Brian Inglis expressed:
>
> > Great catch - Citrix is on BLODA as it tries to intercept a lot in every app:
> [clip]
> > Dirty-dirty-dirty! Citrix ;^>
>
> Well, it's not Citrix. I have Citrix in all my machines (work stuff) and those
> instances of cygwin work ok. But, in any case, I disabled it, reinstalled
> everything, and still no luck. However, if I turn off the Windows Firewall, it
> works. So, now I have to figure that out. If anyone has any ideas, please let
> me know. I am going to start some internet searches and see what I can find.
I am correcting myself on this one. It was Citrix and by re-installing and not checking the "application protection" checkbox, it's working. As we say in Spanish, just clearing the water... :-)
^ permalink raw reply [flat|nested] 35+ messages in thread
end of thread, other threads:[~2023-11-30 19:53 UTC | newest]
Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-20 16:54 Cygwin 3.4.9 - how to install ssh-keygen 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
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
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).