2012-04-19 152 views
4

我的工作是通过M Hartl的教程来了解Ruby on Rails。
我已经完成第6章和git push上混帐中心的工作,但我收到此错误:github上的权限被拒绝(publickey)

[email protected]:~/rails_projets/sample_app$ git push Permission denied (publickey).
fatal: The remote end hung up unexpectedly

我重新安装一个新的公钥的帮助,Git的指令

debug1: Next authentication method: publickey 
    debug1: Offering DSA public key: [email protected] 
    debug1: Authentications that can continue: publickey 
    debug1: Offering RSA public key: [email protected] 
    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). 

而且我有存储库中的文件:

[email protected]:~/.ssh$ ls
ak.bak config id_dsa id_dsa.pub id_rsa id_rsa.pub key_backup/ known_hosts

我做错了什么?

+1

请在您的示例应用程序目录中发布git remote -v的输出。 – ngm 2012-04-19 21:29:06

回答

相关问题