[英]Permission denied (publickey) on github
I work to understand Ruby on Rails with a tutorial of M Hartl. 我通过M Hartl的教程来了解Ruby on Rails。
I have finished chapter 6 and git push
the work on git-hub, but I received this error: 我已经完成了第6章并且git push
了git-hub的工作,但是我收到了这个错误:
rene@Linux-Ubuntu:~/rails_projets/sample_app$ git push Permission denied (publickey). rene @ Linux-Ubuntu:〜/ rails_projets / sample_app $ git push Permission denied(publickey)。
fatal: The remote end hung up unexpectedly 致命:远程端意外挂断
I reinstalled a new publickey as a Help-Git instruction 我重新安装了一个新的公钥作为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).
And I have the files in a repository: 我在存储库中有文件:
rene@Linux-Ubuntu:~/.ssh$ ls rene @ Linux-Ubuntu:〜/ .ssh $ ls
ak.bak config id_dsa id_dsa.pub id_rsa id_rsa.pub key_backup/ known_hosts ak.bak config id_dsa id_dsa.pub id_rsa id_rsa.pub key_backup / known_hosts
What did I do wrong? 我做错了什么?
Have you told github about your public key? 你告诉过github关于你的公钥吗?
https://github.com/settings/ssh https://github.com/settings/ssh
(it's the contents of id_rsa.pub
that you need) (这是你需要的id_rsa.pub
的内容)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.