git 报错Could not read from remote repository.

在使用git的时候出现一下报错

解决方法,切换目录到.ssh目录

cd ~/.ssh

查看该目录下的id_rsa.pub文件

cat ~/.ssh/id_rsa.pub

复制该内容然后添加到github的ssh私钥上。

posted @ 2018-04-25 09:06  阿鹏2019  阅读(703)  评论(0编辑  收藏  举报