1

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:

  • C:\Users\hubert\.ssh
  • C:\Users\hubert\AppData\Local\VirtualStore\Program Files\Git\.ssh

Thank's for your help.

hubert
  • 2,997
  • 3
  • 20
  • 26

1 Answers1

1

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250