Andrea Andrea - 1 year ago 73
Git Question

I got an error while using "git push heroku master" command

When I'm trying to push python project on heroku using

git push heroku master

command I got an error like this.

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

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

How can I solve this error?

Answer Source

You have to add your ssh keys to heroku by running heroku keys:add. Heroku can then verify you and allow access to your repository on heroku. More on this here:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download