GitHub Error Message - Permission denied (publickey)

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

    tl;dr

    in ~/.ssh/config put

    PubkeyAcceptedKeyTypes=+ssh-dss
    

    Scenario If you are using a version of openSSH > 7, like say on a touchbar MacBook Pro it is ssh -V
    OpenSSH_7.4p1, LibreSSL 2.5.0

    You also had an older Mac which originally had your key you put onto Github, it's possible that is using an id_dsa key. OpenSSH v7 doesn't put in by default the use of these DSA keys (which include this ssh-dss) , but you can still add it back by putting the following code into your ~/.ssh/config

    PubkeyAcceptedKeyTypes=+ssh-dss
    

    Source that worked for me is this Gentoo newsletter

    Now you can at least use GitHub and then fix your keys to RSA.

提交回复
热议问题