在将代码推送到 repo 中的 master 分支时,我从 sourceTree 中找到了这条消息,尽管我在我的 github 中添加了公钥并生成了私钥并添加到我的选美 key 列表中。消息是:
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 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
我没有找到任何可以写的东西。我该如何解决?
最佳答案
显然,我的 sourcetree 安装使用 putty 进行 ssh 连接。通过尝试连接到腻子中的服务器,我可以使用输入并将 key 添加到缓存中。在此之后,sourcetree 推送工作。
关于git - SSH:SourceTree 推送失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37108315/