git - SSH:SourceTree 推送失败

标签 git github ssh atlassian-sourcetree

在将代码推送到 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. 

enter image description here

我没有找到任何可以写的东西。我该如何解决?

最佳答案

显然,我的 sourcetree 安装使用 putty 进行 ssh 连接。通过尝试连接到腻子中的服务器,我可以使用输入并将 key 添加到缓存中。在此之后,sourcetree 推送工作。

关于git - SSH:SourceTree 推送失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37108315/

相关文章:

git - 并发 git checkout/add/commit

git 两个破折号表示没有更多选项

ruby-on-rails - 尝试设置 .SSH key 以通过 Cygwin 连接到 Github

linux - Amazon EC2 无法通过 Ubuntu 连接 SSH

debugging - 如何记录 ssh 调试信息?

git - 在 Windows 计算机上设置 Git 服务器

regex - 如何匹配除选项卡之外的所有内容(对于 git diff --word-diff-regex)

git reflog 不显示分支更改

angular - 重新加载在 github 页面上发布的 Angular SPA 时找不到 404 文件

bash - 当我的 qsub 作业在服务器上完成时,如何自动运行 bash 脚本?