X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C829C3858421
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1700727359;
	bh=hMc4HdB648O2IAZgesQjFlUTkcryVHSarCUuFoZ1+A0=;
	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=Swvy5LvLnJ/SOqSFG2gNft+OTyIHEggI0wyTGdqMQUs3ecV+gM2N10Et0nLrAEBm+
	 sQMAlssSNb83GbAP/b6UO4SIxLTv14OdNjTXVKaZFSgnuBvm3AcI2KYng7HKIwVO8L
	 J7LSTF3dbvjdtF3uzTaa4X/4UtHuFZNKbyr0Lslk=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E79B6385829A
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E79B6385829A
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700727344; cv=none;
 b=pmngQRvVLNfigJqMvKpidlh+CJP7nYhPRNlyx8Qza/PVbKbMEaeaVt3DLKOawIGY4gfxmGTgrR64OJDRSz+rOuHv51WbopWM29UuJALNfX7+ZU3VNF9pFkkQra6pgq8uJDOjlal+HDOtNFNswpOYPiOg2BgEweSgzSQqZjjmGYw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1700727344; c=relaxed/simple;
 bh=N66ijvbRs3JkDoFpvjcTmbxX2hOZdBdWoQeFhDQfOQA=;
 h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version;
 b=yDLJ8FInmC7YJDfsUKyT0oW/6yoi2ppg/wJI8kI/ncaepIYAHlse/jabQ2t2wxPn2xBWon5e8CvL/OWv4riPWx1Cacfug7+EXWA4WUXrtt8HX/AMqp3xby9d1rJxdPtByO9H7s6+WSk53RIlcQmXbobcjaE4N6OP6G8LFkA/1ws=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Message-ID: <e0d7c4a6dfc2fffc14d40b5f93c5088de4ac3b99.camel@gmx.li>
Subject: Re: Cygwin 3.4.9 - how to install ssh-keygen
To: cygwin@cygwin.com
Date: Thu, 23 Nov 2023 09:15:38 +0100
In-Reply-To: <5ba8d5ca-9e89-40eb-875e-e511378f1c15@Shaw.ca>
References: <cba6d8a9769ab61ef5e724607d0f32761b3f9308.camel@gmx.li>
 <6afd469a-b486-415f-91b9-1da6d4e31c5f@Shaw.ca>
 <6df5ea4df0cbc7f9c080a648e3dd5ce07f123dee.camel@gmx.li>
 <5ba8d5ca-9e89-40eb-875e-e511378f1c15@Shaw.ca>
User-Agent: Evolution 3.38.3-1+deb11u2 
MIME-Version: 1.0
X-Provags-ID: V03:K1:DiahaAX3nmLcZX/W8GIV4Hz01SYOpeQ5zkRGQWRiqscDVeXXMHX
 Sbi6rLSiug2cV2qJiu+4ooJDDw2mQkBDFP6JRtpTTVOGzpzMP41l6OGciu9ABHsYJ7GGW4V
 rJFAUEWhk3fhHvcax5C3PtPwWze1w33W8P2zf7sIk1UHkOxk60vWwN8I0uT2sfKBsxpR4UW
 /QT/2TauthbbziltQrR/A==
UI-OutboundReport: notjunk:1;M01:P0:P8GNoDkrsoI=;E1O0dO1BCLpscrk0noAzQ3SYZLU
 +K16WXHE43meh02efjetUv6XWIpA0JERAeacXzTOpklPZH2N30AqHnV6l572vPes1wqfBMu3v
 kv75X3NrTCVK5byhuPSYNsJyPEtKcNXN4dT6JHhqhNzwO9vggeIGw7usuaZHNNuMyCCunIgyj
 fLGsNjcJt0HqbX0G0x9vi7FdbL1I5lvlRkRk3geVF5lQycNhWib8wrSovonCH1ppdEHh6Zym/
 SU2NjzidO7C9yhEUrOwYdnFCxkh1bv+hX2KbZLhHckYf5bVY/NJc08wbZ7G/ue+btXFcmJ3qG
 J9Y99//7iBYUbPKGlAnzulK5rJIF7RpY+JjJgdjpxIX/d5/TMiVIgXT0NQlrUpNpPpqqiyc9H
 K6gcz7fOwjSzGy/kfz4yHola2jmY4gLdfSbet97tGEsPxTWV7DXePh0YLcgLKMz6NPF/J6v7U
 4ZWM8+zklrihFk24WqGqofmS9jqZokv7uJ1Dy6aUN0Dz5P8OaC68yanGaWZkWmzyoqH1YNa6k
 oCPJV7tKW7zBHdrJGqoaxr6NUph/usDVpat16XvrKSXNy+GIdADMcdMVd5kN/jJXCQy220qBH
 Kti5QyGkxkCijtOo55wGWQJV0m7zo1oElaSRR4J+KasNTpvpd38/NS/Ef+jiXsxmvnpTe6xtG
 lM0+JjxoiVkT8D2b2luQta6QW8G540Af3RJVyuUljTNKyXCHxI3m/FF3ar2rPyQABnc67tq8P
 VCaOeZbr2n78+XWfxSOIuOuurSmX60F+6iD3r6iYM3ZZ5PchVnhELSVdghQQP3rOU7qYUcfmn
 0YpISCEjUsrYNhWvZzCug2XjsfXh01/QSbMvYeLXwuGODZPIY41nLv7bOBeXtNWKhPfjoBweW
 WJSxbu7QpswYqKHG8F40OXx77/0rP0WvkwmuW+OvOFsoRPW8SsIyye/HM8cIxPf2hqGbjTT4I
 WNuAFg==
X-Spam-Status: No, score=-1.3 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_H3, 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@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Matthias--- via Cygwin <cygwin@cygwin.com>
Reply-To: "Matthias@gmx.li" <matthias.meyer@gmx.li>
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3AN8G028023559

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


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

