github上的权限被拒绝(publickey)

时间:2012-04-19 20:54:25

标签: git github

我通过M Hartl的教程来了解Ruby on Rails 我已经完成了第6章和git push关于git-hub的工作,但是我收到了这个错误:

  

rene @ Linux-Ubuntu:〜/ rails_projets / sample_app $ git push Permission denied(publickey)。
  致命:远程端意外挂断

我重新安装了一个新的公钥作为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).

我将文件放在存储库中:

  

rene @ Linux-Ubuntu:〜/ .ssh $ ls
  ak.bak config id_dsa id_dsa.pub id_rsa id_rsa.pub key_backup / known_hosts

我做错了什么?

1 个答案:

答案 0 :(得分:2)

你告诉github有关你的公钥吗?

https://github.com/settings/ssh

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