Search code examples
ruby-on-railsrubyherokusshkey-generator

heroku error - Permission denied (publickey) when trying to push an update to my application.


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

Trying to push a project update to heroku and getting

Permission denied (publickey).

I've pushed to it previously.


Solution

  • Upload local keys to heroku.

    Personal local keys are in ~/.ssh or if not they can be generated with ssh-keygen

    The answer it to do heroku keys:add ~/.ssh/id_rsa.pub from the application root.