Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly

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

git push heroku master

but get the following error:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I have already uploaded my public SSH key, but it still comes up with this error.

34 s
34

Leave a Comment