X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3C6F3858290 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1700928774; bh=0r9WQnGbBXIoHDp3bNX1y0o1Rv3tSacxbVt0Vlzr05E=; h=Subject:To:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Uz1362pe3fWyBHk1Axj0Y0htu5SV4XHe9XqE6b+7z0tJf5ZcB1aU53B+WwmFYa3fX BpmHu67h0/YehK++VabwTBnodDVTHBBhFen35/C3x5QHCSBk7jXzWJj1ndIMUKLFL+ szT6cWcnSL+3cHcTQWkQZC5u8lR0Iz8i8eeiFx+c= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8CD93858CDB ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E8CD93858CDB 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 X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Message-ID: Subject: Re: Cygwin 3.4.9 - how to install ssh-keygen To: "Dale Lobb (Sys Admin)" , "cygwin AT cygwin DOT com" Date: Sat, 25 Nov 2023 17:12:33 +0100 In-Reply-To: References: User-Agent: Evolution 3.38.3-1+deb11u2 MIME-Version: 1.0 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/oawMIydUrjxpLisE kfuSUCk4Eiy5eMhFcXfawszx+bple0Oa4pJTjYmPjRTCjlEJXXikgv3NugwHScQoowGWEp8Or ts/4Zn8E3uO6Mqf5fCe9yKEuOr5wq1nw+3Jt5W/CNe8Piax+MjJYuSr8u2roIrGJ3idirWYAn SXEiTck4mab5VbMw2Wge4MhA29Lp58ATvQNMNEkle4RqTgHdE6ZwBQwW/9+lM/aV/3tzIXeyh cGg7HiDNh48ukU9irGe0HeXwrI59Y7++sDeackGKV8ecdaLswV/MvgEu1hhrSNDotSrIRKbT5 QYmpQs5TH5OypaME8ValnD+JsU3uqwPzlnJPX1gzezu7A6CjENShEL2+Ds4gr3th3mCBOhE8h B2zDJY7egmO8dH5Z7G73bNiGu0vbbU5I0XCbNka9WzaV9x4QTI1o2Hnc7Jxu6DOFpHVLLmU6k DlBmvZ5p2vteRqQkeKtRbNCVzPc/Toux5uncqgJg3YKddGZDWfUfEUkO1zNvj+0fJuOpu414S AWt+87KMWCq5djsZC7Cw73vxfdVIDIWhAYSxNUmY6xFrMwWIn3YrfGiaNUpd4kGiDQrDTgcqf 5+n7wF4dqB+SRSA8AVbgXIMXolnKdiP31GzyFGL0m+f82vyaHQLpXWczyt+suy7/37S5/dPfK 4qkin3uwZ5FDV4bN8+S3baVGhxGq/4cbzPyrPSN38PVVgsVd4dVRBo4k/KDKRHOVg/xJk94rs 7DDl3jzXHaPHvc8kp1A9rF06XDUuNXlSNtwG9I0eFrZonLDsyf1KKcnUZl+dd5/B3Ky8flmJZ 2TXYbypye6wOS5Q47FBWNtp5snIG2teALAKPtXSeuySrCioGz4g/HakWi+DLcuDERK5F8Ykf2 1vFSYQ== X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Matthias--- via Cygwin Reply-To: "Matthias AT gmx DOT li" Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3APGCtnG016550 > > -----Original Message----- > > From: Cygwin > > On Behalf Of Matthias--- via Cygwin > > Sent: Friday, November 24, 2023 5:32 AM > > To: cygwin AT cygwin DOT 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 AT gmx DOT 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 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 -- 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