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

Reply via email to