Shankar Kamble
Shankar Kamble

Reputation: 3023

git push heroku master getting following error

I'm attempting to deploy my code to heroku with the following command line:

 $ 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.

Upvotes: 0

Views: 257

Answers (1)

Chubby Boy
Chubby Boy

Reputation: 31062

You need to add your key.

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

see this: https://devcenter.heroku.com/articles/keys

Upvotes: 1

Related Questions