Reputation: 3157
I try to pull changes from my local repo to a remote repo. When I type
git pull origin hubert
I get the following error:
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Connection abandoned.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
But When I type
ssh hubert@remove_host
It work fine.
I'm use Windows 7 32 bits
and I have the same files in the dir:
Thank's for your help.
Upvotes: 1
Views: 5081
Reputation: 1323753
Check the value (in a git-bash session) of $GIT_SSH
: if it involves plink.exe
, it won't use $HOME/.ssh/known_host
(which already include origin server, since a manual ssh works)
You can either configure plink:
plink.exe hubert@remote_host
# answer 'y'
Or you can set git to use openssh.
Upvotes: 1