gpt4 book ai didi

heroku - git push heroku master 导致真实性问题和主机 key 失败

转载 作者:行者123 更新时间:2023-12-02 13:52:28 24 4
gpt4 key购买 nike

我正在向 Heroku 进行第一次推送,这就是我所看到的

$ git push heroku master
The authenticity of host 'heroku.com (50.19.85.156)' can't be established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我查看了 Heroku 文档页面 https://devcenter.heroku.com/articles/git-repository-ssh-fingerprints它告诉我

Manually verifying

The current Heroku SSH Git fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.

When you first git push heroku master, please manually match the provided SSH key to this fingerprint.



好的,我知道当前的 SSH Git 指纹是什么,但我不知道 是什么提供 SSH key 是。我也不知道如何匹配这两者。

我还尝试使用 DNS 进行验证。我按照以下说明进行操作

Verifying with DNS

You can make use of our SSHFP DNS records by adding the following lines to your ~/.ssh/config


Host heroku.com  
VerifyHostKeyDNS yes

所以首先我意识到没有 config我的 ~/.ssh/ 中的文件目录。所以我做了 config文件并添加了两行。然后当我再次尝试插入时,这就是我所看到的
$ git push heroku master
Bad owner or permissions on /home/max/.ssh/config
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

关于如何解决这个问题的任何想法?

最佳答案

在您最初推送到 heroku 时,系统会提示您继续连接:Are you sure you want to continue connecting (yes/no)?您需要选择yes . “提供”的 SSH key 是在您的 shell 提示符中输出的 RSA 指纹。请注意,它与文档页面上列出的 Heroku SSH Git 指纹匹配。

关于heroku - git push heroku master 导致真实性问题和主机 key 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21519635/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com