Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Code to Heroku (Issues?)

https://devcenter.heroku.com/articles/python

When i'm trying to deploy my code through $ git push heroku master i get an error:

    Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list      of known hosts.
    Permission denied (publickey).
    fatal: The remote end hung up unexpectedly

Next, I was able to add the RSA host key for that IP address by $ heroku keys:add but I still get this error:

   Found existing public key: /Users/opalkale/.ssh/github_rsa.pub
   Uploading SSH public key /Users/opalkale/.ssh/github_rsa.pub... done
   (venv)Opal-Kales-MacBook-Pro:helloflask opalkale$ git push heroku master
   Permission denied (publickey).

What am I doing wrong...?

like image 296
Opal Avatar asked Feb 22 '26 01:02

Opal


1 Answers

Add your id_rsa.pub SSH key to your Heroku account online: https://dashboard.heroku.com/account

And make sure that the corresponding private key has been added to your identity

$ ssh-add ~/.ssh/id_rsa

E.g.

$ ssh-add ~/.ssh/github_rsa
like image 115
Ric Avatar answered Feb 24 '26 14:02

Ric



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!