I just bought a new computer and I am trying to clone my heroku project on it.
Here\'s what I\'ve done so far. I didn\'t include the trace, but everything was saved
you made a key for your sudo account, but not for your user account and you didn't sudo heroku keys:add
so it uploaded the local user key not the sudo key, i'm guessing. Why would you want your local app in your home directory to have sudo permissions anyway? I would probably x the sudo and just do it as your user following this tutorial: http://docs.heroku.com/keys
I followed the steps provided by heroku and it worked. Once you have generated ssh keys (it does not matter what you call the files), just do the following:
> heroku login
> heroku keys:add
The first statement prompts you for your heroku userid/password. Once you are authenticated, running the second command picks all your public keys and pushes it out to heroku.com. After that you can run git clone and it will work like a charm!
this is a plugin for heroku to manage your account. https://github.com/ddollar/heroku-accounts
>> sudo ssh-keygen
NO. Drop the sudo. That will create keys for the root user, not your user. Well unless of course for some strange reason you want to use root. But then you need to prefix all related commands that are going to use this key with sudo
.
If you already done
heroku keys:add
and still getting error, then please try
ssh-add
https://devcenter.heroku.com/articles/keys#adding_keys_to_heroku It worked with me :
$ heroku keys:add