$ git clone git@github.com:896240130/xiao.git
Cloning into 'xiao'...
Permission denied (publickey).
fatal: Could not read from remote repository.git
Please make sure you have the correct access rights
and the repository exists.github
说白了就是没有权限。ssh
能够先执行下面命令:测试
$ ssh -v git@github.comspa
咱们看到执行后,出现的3d
他在找公钥的时候都在个人c盘下面找的并且名字为 id_XXX,而我生成的空间是在d盘,以后我就把生成key的名字 更名id_rsa 而后再次测试 ,结果为下blog
在此以前你确保一下:你的github.com在设置里面是否设置了ssh keys值rem
没问题后。it
解决方法:还记得咱们生成的id_rsa的时候填写的名字吗?我填写的是xiaojinyanio
我生成后,命名是这样的。但我这个文件并不在C:\Users\Administrator\.ssh 里面。问题在这里,系统就找不到,因此报权限错
ps:有的人在这里路径可能找不到.ssh这个文件夹,当初我也是这样,怎么也找不到。
生成后:
复制这两个文件,到.shh里面去,并改名为id_dsa
更改先后