This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: SSH: The authenticity of host XXX can't be established


Kai Schlichting wrote:
> I have some problems using the ssh.exe from ...\cygwin\bin\: Each time,
> i log in into my ssh-Server (Linux), i get the following output:
>
>    C:\cygwin\bin>ssh -i identity backup@XXXmyIPXXX
>    Could not create directory '/home/_Kai_/.ssh'. The authenticity of
>    host XXXmyIPXXX can't be established.
>    RSA key fingerprint is XXXmyFingerprintXXX .
>    Are you sure you want to continue connecting (yes/no)? yes
>    Failed to add the host to the list of known hosts
>    (/home/_Kai_/.ssh/known_hosts).
>
>    Welcome to MySSHServer!
>    MyLinuxServer >
>
> Explanations:
> - identity is my Private Key File in ...\cygwin\bin\
> - on my Windows Client, i'm logged in as _Kai_
> - on the ssh-Server exists the directory /home/backup/.ssh/
>
> Problem: What can I do that i have not to answer with 'yes' each time?

You should ensure that ssh is able to create the directory
/home/_Kai_/.ssh
on the machine where you issue the ssh command. Which obviously means 
that /home/_Kai_/ has to exist.
BTW: ~/.ssh (i. e. /home/_Kai_/.ssh in your case) is where the identity file 
belongs IMO.

Regards
  mks

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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