我有一个带有2个dynos的python heroku应用程序(一个web和一个worker).
自从过去几个小时以来我似乎无法部署
在尝试部署时("git push heroku master"),我收到以下错误
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
这曾经很好地工作到今天.
我还检查了以下内容,它们似乎是正确的:
还有什么可以改变的?
我设法找到了这个问题.
运行时ssh -vT git@github.com
(感谢指针@Tuxdude)我注意到它正在寻找我的ssh身份~/.ssh/id_rsa
显然,我的SSH密钥文件被命名为github_rsa
和github_rsa.pub
.
将名称更改为id_rsa
并id_rsa.pub
解决了问题.
仍然不确定它之前是如何工作的,因为我总是有这样命名的文件.
归档时间: |
|
查看次数: |
886 次 |
最近记录: |