简体   繁体   中英

Git can't clone repository

I'm trying to connect to a repository but I always get this message when I try to connect

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.

Try to manually connect to the host with ssh to confirm and store the ssh fingerprint. On Windows it might help to use a tool for the checkout that can handle this for you. Eclipse for example can, as far as I know.

If ssh is not working for you try to clone using http/https.

Another solution (depends on your git "server" github/bitbucket/stash etc) add your ssh key to the "server" and it will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM