Git_远程克隆github上项目被拒绝--Permission denied (publickey). fatal: Could not read from remote repository.
https方式可以克隆,但是使用ssh方式远程克隆github上项目被拒绝--Permission denied (publickey). fatal: Could not read from remote repository.
原因:
github上没有对应本地的私钥
解决:
在github的setting中保存本地私钥;这要添加的是“id_rsa.pub”里面的公钥。