Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (19.4k points)

I have made a react app and deployed that on Heroku using git( using https). Now I have made some changes in that react app. I am able to push my changes in the git but I am not able to push those changes to Heroku. I used this command

git push heroku master

The error which I am getting is:

[email protected]: Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

1 Answer

0 votes
by (12.4k points)

Here, First, upload your key to Heroku using this command: 

heroku keys:add ~/.ssh/id_rsa.pub

or you can add one automatically, by using:

heroku keys:add

Want to learn more about DevOps? Check out: DevOps Course

Browse Categories

...