CodeGeeky
CodeGeeky

Reputation: 453

Error on deploying with Git on Heroku

I'm not able to deploy in Heroku. I'm getting Permission Denied! everytime. I have my repository already exists.

$ git remote -v
heroku  [email protected]:catapp11.git (fetch)
heroku  [email protected]:catapp11.git (push)

But while I try to push in Heroku, I always get error.

$ git push -u 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.

Upvotes: 3

Views: 70

Answers (1)

marzapower
marzapower

Reputation: 5611

You need to upload to Heroku your keys. Follow this article or try:

heroku keys:add

Upvotes: 5

Related Questions