git push heroku master会导致真实性问题和主机密钥失败
我正在做我的第一次推希罗库,这就是我所看到的git push heroku master会导致真实性问题和主机密钥失败,heroku,ssh,rsa,push,fingerprint,Heroku,Ssh,Rsa,Push,Fingerprint,我正在做我的第一次推希罗库,这就是我所看到的 $ 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)?
$ 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文档页面,它告诉我
手动验证
当前Heroku SSH Git指纹为
8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad
当你第一次用git推heroku主机时,请手动匹配
为此指纹提供了SSH密钥
好的,我知道当前的SSH-Git指纹是什么,但我不知道提供的SSH密钥是什么。我也不知道我会如何匹配这两个
我还尝试用DNS验证。我遵循以下说明
使用DNS验证
您可以通过添加以下内容来使用我们的SSHFP DNS记录
连接到~/.ssh/config的行
所以首先我意识到在我的~/.ssh/
目录中没有config
文件。因此,我创建了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时,当系统提示您继续连接时:
您确定要继续连接(是/否)?
您需要选择是
。“提供的”SSH密钥是在shell提示符中输出的RSA指纹。请注意,它与文档页面上列出的Heroku SSH Git指纹匹配 首次推送到heroku时,系统会提示您继续连接:是否确实要继续连接(是/否)?
您需要选择是
。“提供的”SSH密钥是在shell提示符中输出的RSA指纹。请注意,它与文档页面上列出的Heroku SSH Git指纹匹配 我不确定这是否能解决您的问题,但当它提示您继续连接时,您需要选择“是”:是否确实要继续连接(是/否)?否
-->是
提供的SSH密钥是您在shell提示符中看到的(当它说无法建立真实性时)。您将看到它与屏幕上的SSH Git指纹匹配website@Moritz我选择了“是”,它似乎起了作用。谢谢我没有选择“是”的原因是因为我认为会有不好的事情发生。当你看到“主机的真实性无法建立”,而你是一个刚开始涉足这一领域的新手时,你会感到害怕。请随意提供答案,我会将其标记为答案。我不确定这是否能解决您的问题,但当提示您继续连接时,您需要选择“是”:是否确实要继续连接(是/否)?否
-->是
提供的SSH密钥是您在shell提示符中看到的(当它说无法建立真实性时)。您将看到它与屏幕上的SSH Git指纹匹配website@Moritz我选择了“是”,它似乎起了作用。谢谢我没有选择“是”的原因是因为我认为会有不好的事情发生。当你看到“主机的真实性无法建立”,而你是一个刚开始涉足这一领域的新手时,你会感到害怕。请随意提供答案,我会将其标记为答案。
$ 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.