From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by sourceware.org (Postfix) with ESMTPS id E8CD93858CDB for ; Sat, 25 Nov 2023 16:12:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8CD93858CDB Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.li Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.li ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E8CD93858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.17.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700928761; cv=none; b=WVJ0V3Yz/tbdS9Gc+/Iql/qfcqtqWVbH2rCpjWP6c5CB8wT0p5tgd4DKxtzXYdjm+izuDqgMKzfZlOA/wIy2bFo/t3SMxdO4kGURljQLcRrf7ihNOuIY33+Z2JjJCQrEt3f7bTxSbWdjUJvSH++Inte4o3OU9OLslVXcc9A2BPw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700928761; c=relaxed/simple; bh=GX8kGUNKiBx3+LelnefLxk/sONQC0fC3tPZEea6N2/g=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=jT5I0Wq8sDpZnF2tbfVyj4L1HKaG5zbH0c4wOGK8y0FTfpzEABHG64dMRu6FQTmVXbCvS4H9OyU3sZdBlahD7aqpMDA8GZWALcX43mj8y97HG9r0hqCJfKG0hXYOeto59i9E97XvPWOdrbTSIP5Pd6p0Rbi3ktkljTX2VIagcMw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.li; s=s31663417; t=1700928754; x=1701533554; i=matthias.meyer@gmx.li; bh=GX8kGUNKiBx3+LelnefLxk/sONQC0fC3tPZEea6N2/g=; h=X-UI-Sender-Class:Subject:From:To:Date:In-Reply-To:References; b=Azl+Pu5TzlK3V98mNiFt8YtxSZu2pcTWRZPEfvgI1Qe9+R6ZomCVKDLnAohpR4ja QFlU53vg+zugzR3NY3aK6kCwmXFkTFR2TYCyDuIlnUup16hX6AEPKTwenqtfMEzRq RoxpfyoUfkBjOLcPzW7LcH7H/lFMRRGwBaW0MtYr9J6ts1bW7dgu+wPhZNZaNLsP+ ywYQGe8BPtXzXAGrLP2EUWgU3rQiBOytyqX8M4sf7a1s6+149X/Uoyubaz/jHNbaB 5oa5VOSR2aj+EQa8V3ePkrUTC9tOyEAx9hmWKdNnM4OKnMPBdNS8zfhRkfoCi2bqr g9zp786LebhplVkVFg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from AthLux.PrivateLan.at ([81.217.74.80]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MkHMP-1rZxYR1uaP-00kdAl; Sat, 25 Nov 2023 17:12:34 +0100 Message-ID: Subject: Re: Cygwin 3.4.9 - how to install ssh-keygen From: "Matthias@gmx.li" To: "Dale Lobb (Sys Admin)" , "cygwin@cygwin.com" Date: Sat, 25 Nov 2023 17:12:33 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1+deb11u2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:jdl7rBHkK6wKmucK8E3156HY4/ZRLeM5ggnpxxUpjy6Dx+MEd0S rKMT+lFXuoCiFsfw5tVG+kRIhNAYxHSGcd/Z6qR0syC4S4t5bVpqVyESlVbmb+mo7g6Fj8M SGo1cs2iSVBNbct1K7IDMFZYcXbJe7GOybsTEoSRRlaKj/yKO28nYATDdpywaUEwD4bL5D/ uM4C9jWW46lOPUiHGAqHg== UI-OutboundReport: notjunk:1;M01:P0:9Cw8obD5naw=;uvi/VTITYY8g4e8ysrVpGNKm50H 1fEynkfwZTN31zQbHe5EK5w4Er9n+siMQBttatJuU6GXbw5R+lha2BU4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F_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > > -----Original Message----- > > From: Cygwin > > 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.l= i: > > > 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. > > > =C2=A0* Answered "yes" to create the /etc/ssh_config and /etc/sshd_c= onfig > > > =C2=A0* Answered "no" to use StrictMode > > > =C2=A0* and "yes" to install sshd as a service > > > =C2=A0* I just press for the question for "Value of CYGWIN f= or the daemon". > > > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no ho= stkeys available". > > > > > > Unfortunately=C2=A0 I can't find ssh-keygen in the installable packa= ges. > > > 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 plu= s 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-ho= st-config > > but no host-keys has been created: > > =C2=A0=C2=A0 $ ssh-host-config > > > > =C2=A0=C2=A0 *** Info: Generating missing SSH host keys > > =C2=A0=C2=A0 *** Info: Creating default /etc/ssh_config file > > =C2=A0=C2=A0 *** Info: Creating default /etc/sshd_config file > > > > =C2=A0=C2=A0 *** Info: StrictModes is set to 'yes' by default. > > =C2=A0=C2=A0 *** Info: This is the recommended setting, but it require= s that the POSIX > > =C2=A0=C2=A0 *** Info: permissions of the user's home directory, the u= ser's .ssh > > =C2=A0=C2=A0 *** Info: directory, and the user's ssh key files are tig= ht so that > > =C2=A0=C2=A0 *** Info: only the user has write permissions. > > =C2=A0=C2=A0 *** Info: On the other hand, StrictModes don't work well = with default > > =C2=A0=C2=A0 *** Info: Windows permissions of a home directory mounted= with the > > =C2=A0=C2=A0 *** Info: 'noacl' option, and they don't work at all if t= he home > > =C2=A0=C2=A0 *** Info: directory is on a FAT or FAT32 partition. > > =C2=A0=C2=A0 *** Query: Should StrictModes be used? (yes/no) no > > =C2=A0=C2=A0 *** Info: Updating /etc/sshd_config file > > > > =C2=A0=C2=A0 *** Query: Do you want to install sshd as a service? > > =C2=A0=C2=A0 *** Query: (Say "no" if it is already installed as a serv= ice) (yes/no) yes > > =C2=A0=C2=A0 *** Query: Enter the value of CYGWIN for the daemon: [] > > > > =C2=A0=C2=A0 *** Info: The sshd service has been installed under the L= ocalSystem > > =C2=A0=C2=A0 *** Info: account (also known as SYSTEM). To start the se= rvice now, call > > =C2=A0=C2=A0 *** Info: `net start cygsshd' or `cygrunsrv -S cygsshd'.= =C2=A0 Otherwise, it > > =C2=A0=C2=A0 *** Info: will start automatically after the next reboot. > > > > =C2=A0=C2=A0 *** Info: Host configuration finished. Have fun! > > > > =C2=A0=C2=A0 $ ls -alh /etc/ssh* > > =C2=A0=C2=A0 -rw-r--r-- 1 SYSTEM Administratoren 1.5K Nov 24 12:02 /et= c/ssh_config > > =C2=A0=C2=A0 -rw-r--r-- 1 SYSTEM Administratoren 3.1K Nov 24 12:02 /et= c/sshd_config > > > > Also running ssh-user-config don't create any keys: > > =C2=A0=C2=A0 $ ssh-user-config > > =C2=A0=C2=A0 *** Query: Shall I create a SSH2 RSA identity file for yo= u? (yes/no) yes > > =C2=A0=C2=A0 *** Info: Generating /home/meyer/.ssh/id_rsa > > =C2=A0=C2=A0 *** Query: Do you want to use this identity to login to t= his machine? > > (yes/no) yes > > =C2=A0=C2=A0 *** Info: Adding to /home/meyer/.ssh/authorized_keys > > =C2=A0=C2=A0 cat: /home/meyer/.ssh/id_rsa.pub: No such file or directo= ry > > =C2=A0=C2=A0 *** Query: Shall I create a SSH2 DSA identity file for yo= u? (yes/no) no > > =C2=A0=C2=A0 *** Query: Shall I create a SSH2 ECDSA identity file for = you? (yes/no) no > > =C2=A0=C2=A0 *** Query: Shall I create a (deprecated) SSH1 RSA identit= y file for you? > > (yes/no) no > > > > =C2=A0=C2=A0 *** Info: Configuration finished. Have fun! > > > > =C2=A0=C2=A0 $ ls -alh $HOME/.ssh > > =C2=A0=C2=A0 total 4.0K > > =C2=A0=C2=A0 drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 . > > =C2=A0=C2=A0 drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 .. > > =C2=A0=C2=A0 -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 > > =C2=A0=C2=A0 /usr/bin/ssh-keygen -vvf /etc/ssh_host_rsa_key -N '' -t r= sa > > don't produce any output. Also if it has return value 0. BTW: Windows > > OpenSSH isn't installed on my > > machine. > > > > Ren=C3=A9 Berber wrote that my files have the wrong permissions. But f= or shure, > > /home and /home/meyer has > > been created during cygwin installation and /home/meyer/.ssh by ssh-us= er- > > config. > > > > Which permissions the directories and files should have? > > What could the reason be that ssh-keygen don't create any key? Looks l= ike it > > wouldn't try it? > > > > Thanks in advance > > Matthias > > > > > > Try this and look to the end.=C2=A0 Is there=C2=A0 perhaps a segmentatio= n fault error? > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $ strace ssh-keygen > > =C2=A0 I have a VM with Cygwin installed in it, which used to work for a= ll the installed > packages.=C2=A0 However, after a recent update, all binaries linked to o= penssl now > produce silent segmentation faults.=C2=A0 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 00007ffcbc79= 0000 --- 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 00007= ffcbb550000 --- 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 ha= ve Segmentation fault too Is there a way to solve it? Br Matthias