我尝试使用ssh从bitbucket克隆git存储库。它适用于https,但我一直得到以下结果
> git clone git@bitbucket.org:PATH/TO/MY/REPOSITORY.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 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
Connection abandoned.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我使用正确的密钥运行选美,GIT_SSH = C:\ Program Files(x86)\ Putty \ plink.exe
答案 0 :(得分:0)
我一直在猜测某种访问权限问题,但真正的问题是未知的主机。
要解决这个问题,只需执行
即可putty git@bitbucket.org
这将启动一个终端窗口和一个对话框,让您有机会接受服务器指纹。之后,上一个clone命令按原样工作。