$ git push -u origin master
Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决办法:
C:\Windows\System32\drivers\etc\hosts
添加一行:13.229.188.59 github.com
输入 ssh-keygen -t rsa 再按三次回车,就生成了本地电脑公匙(再回车一下才会生成)
在自己的github账号Settings/SSH and GPG keys,创建新SSH keys,将C:/Users/32332/.ssh/id_rsa中的内容粘贴到其中,ok
id_rsa.pub
windows7用了老哥你的方法推送成功了,多谢!
Sign in to make a reply
向着光行走吧
$ git push -u origin master
Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决办法:
C:\Windows\System32\drivers\etc\hosts
添加一行:13.229.188.59 github.com
在自己的github账号Settings/SSH and GPG keys,创建新SSH keys,将C:/Users/32332/.ssh/id_rsa中的内容粘贴到其中,ok