我通过M Hartl的教程来理解Ruby on Rails。
我已经完成了第6章,并在git-hub上完成了git push的工作,但是我收到此错误:



我重新安装了一个新的公钥,作为Help-Git的说明

    debug1: Next authentication method: publickey
    debug1: Offering DSA public key: rene@Linux-Ubuntu
    debug1: Authentications that can continue: publickey
    debug1: Offering RSA public key: rene@Linux-Ubuntu
    debug1: Authentications that can continue: publickey
    debug1: Trying private key: [~/.ssh/id_rsa]
    debug1: Trying private key: [~/.ssh/id_dsa]
    debug1: No more authentication methods to try.
    Permission denied (publickey).

我在存储库中有文件:



我做错了什么?

最佳答案

您是否已告知github您的公钥?

https://github.com/settings/ssh

(这是您需要的id_rsa.pub的内容)

关于git - GitHub上的权限被拒绝(公钥),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10236615/

10-13 06:14