git push heroku master permission denied on VISTA

前端 未结 4 1207
一个人的身影
一个人的身影 2021-02-01 10:10

(Using Vista)I\'m trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I\'ve tried to create an SSH key so many times with this:

 `         


        
4条回答
  •  猫巷女王i
    2021-02-01 11:06

    Note: your ticket on GitHub Support prompted the answer:

    You need to give heroku your key. There should be a command to do it. If you can't find it, you'll have to contact their support.

    For that, see Graeme Collins's answer (and also Heroku error: "Permission denied (public key)" ):

    heroku keys:add ~/.ssh/id_rsa.pub
    

    See Heroku devcenter for more on that process.
    You can then see a list of all keys, including the key’s name, like this:

    heroku keys
    

    Note: that suppose you didn't use sudo to generate your keys, as " git clone heroku ssh permission denied " illustrates (where heroku keys:add doesn't work)


    More information about your ssh keys in your other GitHub Support ticket.

    debug1: Trying private key: /.ssh/identity
    debug1: Trying private key: /.ssh/id_rsa
    debug1: Trying private key: /.ssh/id_dsa
    

    I'm not sure why it would be looking at /.ssh and not ~/.ssh then.
    Try moving your keypair over to that path.


    Shouldn't that be:

     git push origin master
    

    ? By default, a reference to the cloned repo is called 'origin', not 'heroku'

    What does

    git remote -v show
    

    display?

    It you want, you can reference the distant repo by the heroku name

    git remote add heroku git@github.com:git_username/projectname.git
    

提交回复
热议问题