今天从git上拉取android sample code 出现错误
Permission denied (publickey).
fatal: Could not read from remote repository.
下面给出解决步骤
![](https://img.haomeiwen.com/i11234707/eed78362de98f8d1.png)
![](https://img.haomeiwen.com/i11234707/45b2a1f8a22f6c3b.png)
![](https://img.haomeiwen.com/i11234707/419ef9bc82268ef3.png)
![](https://img.haomeiwen.com/i11234707/393fa679f4c514f8.png)
第一个title填写一个名字
下面输入框 内容如果是windows
找到C:\Users\Administrator.ssh\id_rsa.pub
打开文件 内容 复制粘贴到上面输入框
如果是linux
打开 这个路径的文件 ~/.ssh/id_rsa.pub
如果没找到上述文件可以用这个命令生成
ssh-keygen -t rsa
一路回车......
最后,输入“ssh -T git@github.com”确认OK即可。
再尝试输出就应该有了
网友评论