git clone heroku ssh permission denied

前端 未结 6 1940
南旧
南旧 2020-12-31 04:29

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

相关标签:
6条回答
  • 2020-12-31 05:11

    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

    0 讨论(0)
  • 2020-12-31 05:14

    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!

    0 讨论(0)
  • 2020-12-31 05:19

    this is a plugin for heroku to manage your account. https://github.com/ddollar/heroku-accounts

    0 讨论(0)
  • 2020-12-31 05:20
    >> 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.

    0 讨论(0)
  • 2020-12-31 05:20

    If you already done

    heroku keys:add
    

    and still getting error, then please try

    ssh-add
    
    0 讨论(0)
  • 2020-12-31 05:24

    https://devcenter.heroku.com/articles/keys#adding_keys_to_heroku It worked with me :

    $ heroku keys:add

    0 讨论(0)
提交回复
热议问题