GitHub Error Message - Permission denied (publickey)

后端 未结 30 2572
长发绾君心
长发绾君心 2020-11-22 04:23

Anybody seen this error and know what to do?

I\'m using the terminal, I\'m in the root, the GitHub repository exists and I don\'t know what to do now.



        
30条回答
  •  不知归路
    2020-11-22 05:18

    I was getting this error. Turns out I had just upgraded OSX to Sierra and my old key was no longer registered.

    At first I thought it was "Upgrading to macOS Sierra will break your SSH keys and lock you out of your own servers"

    But I had sidestepped that one. Turns out I just had to re-register my existing key:

    ssh-add -K

    And type the passphrase... done!

提交回复
热议问题