From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by sourceware.org (Postfix) with ESMTPS id E8CBE3858D28 for ; Fri, 24 Nov 2023 11:31:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8CBE3858D28 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 E8CBE3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.17.20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700825503; cv=none; b=hf98JbYTml6XG3WePy8Z8WQf7EPEqlqa0yavhCE13Bl/xiTa3z35IhMVQ4uZYRTHYLI+BrE2PS2HEew7kqQEQ6dyWH2Pwg5gOzbrHndNihctGlfUQf8eDMl4pbQKVAgyuCh0F1clzCNRbSWxKcwVVkFd71m24cagCU0XpUc6PbQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700825503; c=relaxed/simple; bh=1uCfV7V4EbcthjEwJyW4ejLkI8GDhgZrTOuHFQZO1co=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=G4xghsFnJ1KEREjJaUeG760QejG5MdEKrtn9XvP4aJUD3Smp2XVjL7m6Dp8uYNLwPwpm5btQSs/Gejz1ETOl+2jlfXPzGTXdHIvDMJszY/BgnUq0MVLwVYV3P4IrzEvmX1oBrlVZOYJly2Bw1e2U3wR5a+7lRhPYpJCdn/dhWqw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.li; s=s31663417; t=1700825499; x=1701430299; i=matthias.meyer@gmx.li; bh=1uCfV7V4EbcthjEwJyW4ejLkI8GDhgZrTOuHFQZO1co=; h=X-UI-Sender-Class:Subject:From:To:Date:In-Reply-To:References; b=Rap3oSsWEQHXgv9f1DWFz5zURUhrZlVfmBLfcyp4ecW3vklbUnKAecEDUzI345sr 6iN6t+tjUBiASTqvIwjWRgnzE24jQQD3hswevOC/6fge5pildQcFhydK+Xu3xcNNA XQOanRK1nla4x883px3dIy2KqfEGVxuWGButR4U1vv1ltlX5N2VRWPeNvZtAZ0VRC wlrdW3/GHtCqIitl3Lwc1wiDP2vKY4whypzMsp59MBJdrtopwBZkx9nk8Zlnywdyq 9O/VOrcbTTO8aHb5ZxsGyxR/cgXdT9Y83PZF1awtYPNBaHBiNybVjneuW3RJ/1Z8Y 6whWHKUfVgulQ3R49w== 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 1MsHru-1rQlLV1QE6-00toER for ; Fri, 24 Nov 2023 12:31:39 +0100 Message-ID: Subject: Re: Cygwin 3.4.9 - how to install ssh-keygen From: "Matthias@gmx.li" To: cygwin@cygwin.com Date: Fri, 24 Nov 2023 12:31:38 +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:pavV77qvFkG7QiHfZGy/2x8ZTf1hwzCOg0AUuZvItBM15CQLiGa 42lhC+BqdsmLwZpzLyk5v9cyOuJCK/6An730b/TDcKhgpCGRn3kzof8TlDfBh8b2EeYtS7y KxAu/BW+k4iZ8dMeQJ0ukIs1c1KNNU2GXuv9z1G8ARMnfV2qALi8eNSb772gcQ8VNj8YV8g xaxLCjdeVtXu8A1x8r8SA== UI-OutboundReport: notjunk:1;M01:P0:cOtswMc9XiM=;xHLhRUzdsdpSr2MYpgx+nd+G2I3 0O45lbuyiE3qnaz4bnxC2QL3At/2XifTg95wLMRry0KiwdZc+kVVhbCfkoqDUFQngHCDyzmKI sNzdFW72+DHfQd/4P7YAe++045XWTSp0bvEHZUxA5YiRVZml0ThhCAhLJKC6BPz1I+ZtYVFUY vXveZe0LXABy8ck407GpVhh4AWifS0eJTKghaNXnbZN/xc30+B5Qm5D4GCrDpleacnCMVs1P3 vtcxqbov9uA55POyxKtlbieKxYp4dfdR0Ky2vc+lwrjnLnZjOhXDz0gRONWEVLvnPiESLjZbL RPFDua5VKFn+3kzvTFpng3xXsy+cduZw0j27bvYtjay8uCnBBJw82IfpsP2JQtjAr/gVrInPi nv9J3/e0Pc/nkMYhaW45hHYKXGnplRaRLROrtR9CvLLdO59VZ1AT4vGeiZDT4ceNQ4xLlAoFT WVnQ5bI8tS7joGfDqN6BVU/fmXvu2E8sadIbywgL8T7GQXFEUqBbWnOuDEq2kLieVsvAQRRva b/vHUKtglh37/OX+AWSVYPlVPyYIWRbcuZkzAWVF3z1Xd0fidTwxocp3etsY+bDkq6D/vtLdg o+qzJ5iPvDq8U/ibBYQNj9VIJMnZgjdVXpz5cEf2pOeDbeoFGfSJDrVlBq6kIdRwtgupaBzNe i/RsGWOk9XO9j8vWHnQfkAq4+7i+L9ZZaOPGzystOX38ecR02x+HjQNwHeAYuYc3siiVyJnmp D2WVBmaplYtVtO3XfrOd1t1Lg36/t7+aXph+NoALZjRuyHfYnuKmukJTVbMksMNYHKySZpUqP fwYKD5rfBbfQWXGivveLVelWP2iensaIrSOtVTINOliPCebzmmQRHv1wlQogIso9CBPShVV8y KMprkomvOD7nrbHNBa6O3MliqnVE0QFZydhIPqZEjzGqS6Qu9jB9N7UttQcJ42rgEpvkUQG/2 jJuq1A== X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY,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 List-Id: 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-Ter= minal as Administrator and > run ssh-host-config. > =C2=A0* Answered "yes" to create the /etc/ssh_config and /etc/sshd_confi= g > =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 for t= he daemon". > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostke= ys available". > > Unfortunately=C2=A0=C2=A0I can't find ssh-keygen in the installable pack= ages. > 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 rs= ync 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 s= uch file" Anyhow, I opened the Cygwin64-Terminal as Administrator and run ssh-host-c= onfig 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 POS= IX *** 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, cal= l *** 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) ye= s *** 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 Open= SSH isn't installed on my machine. Ren=C3=A9 Berber wrote that my files have the wrong permissions. But for s= hure, /home and /home/meyer has been created during cygwin installation and /home/meyer/.ssh by ssh-user-c= onfig. 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