GitHub Error Message - Permission denied (publickey)

后端 未结 30 2567
长发绾君心
长发绾君心 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:17

    For me I tried this -

    eval "$(ssh-agent -s)"
    

    then I run

    ssh-add ~/.ssh/path-to-the-keyfile
    

    and for generating the key you can run

    ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
    

    this will generate the pair of keys (Public and private).

    you can store this key to github for more read this Adding a new SSH key to your GitHub account

    I hope it will help others :)

提交回复
热议问题