Heroku部署停止了工作

yon*_*ili 1 git heroku

我有一个带有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)

这曾经很好地工作到今天.

我还检查了以下内容,它们似乎是正确的:

  • 我的公钥是在我的帐户下定义的
  • 我的应用正在响应(例如没有空闲)
  • 存储库URL在git配置文件中正确配置

还有什么可以改变的?

yon*_*ili 5

我设法找到了这个问题.

运行时ssh -vT git@github.com(感谢指针@Tuxdude)我注意到它正在寻找我的ssh身份~/.ssh/id_rsa

显然,我的SSH密钥文件被命名为github_rsagithub_rsa.pub.

将名称更改为id_rsaid_rsa.pub解决了问题.

仍然不确定它之前是如何工作的,因为我总是有这样命名的文件.