delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/11/24/06:31:58

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A60613858431
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1700825517;
bh=TXyHQzwW2JOvugZhq4M/mWsRJq8iRGWNR5IIwdScakU=;
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=JJv+G+gH+Kk5ExKZBrvGLmJEL+z5S9T8kvwmZrYRBsTrq7HgHbxQaIHcSjUeaHElO
XZbgcR3G28nLmJ9EZ+4rY5G3WVKdjzbfYVQZks9iUTg3DCTbiK4xXYfNi/tybavmZ4
04yI4Aee74mjiMbHwS8Qdly+jKcQ9ogUZ3g4/MIg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8CBE3858D28
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E8CBE3858D28
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
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Message-ID: <cb49e2b78a4818e090b169cc88bfc497024b4d60.camel@gmx.li>
Subject: Re: Cygwin 3.4.9 - how to install ssh-keygen
To: cygwin AT cygwin DOT com
Date: Fri, 24 Nov 2023 12:31:38 +0100
In-Reply-To: <cba6d8a9769ab61ef5e724607d0f32761b3f9308.camel@gmx.li>
References: <cba6d8a9769ab61ef5e724607d0f32761b3f9308 DOT camel AT gmx DOT li>
User-Agent: Evolution 3.38.3-1+deb11u2
MIME-Version: 1.0
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
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Matthias--- via Cygwin <cygwin AT cygwin DOT com>
Reply-To: "Matthias AT gmx DOT li" <matthias DOT meyer AT gmx DOT li>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3AOBVwSM022350

Am Montag, dem 20.11.2023 um 17:54 +0100 schrieb 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 <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


-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019