我正在使用M Hartl的Ruby on Rails教程学习,目前已经完成第6章并将工作内容通过git-hub进行了git push
,但是出现了以下错误:
rene@Linux-Ubuntu:~/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: 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
我做错了什么?