This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [ANNOUNCEMENT] OpenSSH-2.1.1p4 for Cygwin 1.1.3


James Dumser wrote:
> 
> On Wed, 02 Aug 2000 18:04:01 +0200, Corinna Vinschen wrote:
> >>From your README:
> >>> - If you are installing OpenSSH the first time, you can generate
> >>>   server keys and your own user keys by running
> >>>
> >>>          /usr/local/bin/ssh-config
> >>
> >> Actually, it's not the first time; but it wasn't working before. I
> >> removed /usr/local/etc/ssh_host* files, renamed my ~/.ssh, and ran
> >> ssh-config. BTW, it would be nice if ssh-config created ~/.ssh if it
> >> didn't exist.
> >
> > ssh-keygen creates .ssh by itself.
> 
> But it didn't. At first it complained about not being able to write to
> //.ssh/identity; I modified ssh-config to make sure the // wasn't
> messing it up, but it still reported it couldn't create it.

Don't use / for $HOME. I have reported that earlier. For now,
simply call ssh-keygen by hand without parameters.
I will change ssh-config to deal with that.

>   bash-2.04$ ssh-keygen -f "${HOME}/.ssh/identity"
>   Generating RSA keys:  ......................ooooooO.....ooooooO
>   Key generation complete.
>   Enter passphrase (empty for no passphrase):
>   Enter same passphrase again:
>   Saving the key failed: //.ssh/identity: No such host or network path.
>   bash-2.04$ ssh-keygen -f "/.ssh/identity"
>   Generating RSA keys:
> .......................................ooooooO........ooooooO
>   Key generation complete.
>   Enter passphrase (empty for no passphrase):
>   Enter same passphrase again:
>   Saving the key failed: /.ssh/identity: No such file or directory.
> 
> >> When I try to ssh to itself, I get
> >>   debug: ssh_exchange_identification: sshd: no hostkeys available --
> >>          exiting.
> >
> > From the sources I can see exactliy three possible reasons:
> > - v1.X protocol: Problem with rsa.
> > - v1.X protocol: No ssh_host_key file.
> > - v2 protocol: No ssh_dsa_host_key file.
> >
> > Try `sshd -d' from the command line. This might give you a hint.
> 
> Okay. A log file is attached. Since I was trying with your ssh (v2), it
> appears it must be the ssh_dsa_host_key file, but ...
> 
>   bash-2.04$ ls /usr/local/etc
>   ssh_config            ssh_host_key          ssh_known_hosts
>   ssh_host_dsa_key      ssh_host_key.pub      sshd_config
>   ssh_host_dsa_key.pub
> 
> I also just tried renaming the dsa files as you state above (dsa_host
> rather than host_dsa as in ssh-config), but that doesn't help either.

Oh no, sorry, that was roughly spoken. I simply meant the dsa
host key file regardless which name is used.

I have found an error in sshd in conjunction with using via inetd.
You might have read the corresponding thread.

Your specific problem with the missing host key file isn't related
but... Is it possible that your /usr/local/etc directory is under
a user mount point instead of a system mount point.

If that is not the reason I fear I'm clueless for now.

I will first upload the patched version now, at least tomorrow.
Feel free to contact me again then.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]