1

I have a python heroku app with 2 dynos (one web and one worker).
Since the last couple of hours I can't seem to deploy

When trying to deploy ("git push heroku master") I get the following error

Permission denied (publickey).
fatal: Could not read from remote repository.

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

This used to work fine until today.

I also checked for the following and they seem to be correct:

  • My public key is defined under my account
  • My app is responding (e.g. not idle)
  • The repository url is correctly configured in the git config file

What else could have changed?

4

2 に答える 2

5

I managed to find the issue.

When running ssh -vT git@github.com (Thanks for the pointer @Tuxdude) I noticed it was looking for my ssh identity under ~/.ssh/id_rsa

Apparently my ssh key files were named github_rsa and github_rsa.pub.

Changing the names to id_rsa and id_rsa.pub solved the issue.

Still not sure how it worked before as I always had the files named like that.

于 2013-03-21T09:37:26.630 に答える
1

Try running the following commnands:

$ heroku keys:clear
$ heroku keys:add

The first one will remove any expectations that Heroku has for any keys you have. The second will add your key back to your heroku account. If you have further issues, try the following first, then the aforementioned commands next:

$ heroku auth:logout
$ heroku auth:login

That will ensure that you are properly authorized to the correct account.

于 2013-03-20T21:27:43.857 に答える