Git无法克隆存储库

时间:2013-07-25 08:33:47

标签: git

我正在尝试连接到存储库,但是当我尝试连接

时,我总是收到此消息
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 c1:90:ff:d5:6b:78:33:5d:7b:ba:f6:f6:bc:1c:de:79
Connection abandoned.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2 个答案:

答案 0 :(得分:3)

尝试使用ssh手动连接到主机以确认并存储ssh指纹。在Windows上,使用可以为您处理此问题的结帐工具可能会有所帮助。例如,Eclipse就可以了。

答案 1 :(得分:1)

如果ssh不起作用,请尝试使用http / https进行克隆。

另一个解决方案(取决于您的git“服务器”github / bitbucket / stash等)将您的ssh密钥添加到“服务器”,它将起作用。