github上的权限被拒绝(publickey)
问题描述:
我的工作是通过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
我做错了什么?
请在您的示例应用程序目录中发布git remote -v的输出。 – ngm 2012-04-19 21:29:06