赞
踩
Warning: Permanently added the RSA host key for IP address 'xx.xx.xx.xx' 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
如果使用的是tortoiseGit这个工具的话打开菜单里的设置->git->远端 查看远端url是不是 git@github.com:xxxxxxxx.git ,如果是的话把它改成 https://github.com/xxxxxx/xxxxxxx.git 的链接就可以啦
打开命令行输入下面命令生成key
ssh-keygen -t rsa
如果出现ssh-keygen不是内部或外部命令的话找到git的安装目录把下面路径添加到系统的环境变量里
然后,一路回车即可;最后输入:
ssh -T git@github.com
打开下面路径下的id
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。