我正在尝试使用ssh从bitbucket克隆一个git存储库。它在https上可以很好地工作,但是我不断得到以下结果
> git clone [email protected]: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运行选美
我一直在猜测某种访问权限问题,但真正的问题是未知主机。
要解决此问题,只需执行
putty [email protected]
这将启动一个终端窗口和一个对话框,使您有机会接受服务器指纹。之后,先前的克隆命令将按原样工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句