git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

解决方法

第一步:在文件目录下 C:UsersAdministrator.ssh 找到 .ssh文件

第二步:删除 .ssh 下的known_hosts 文件

第三步:生成ssh公钥认证所需的公钥和私钥文件 

  鼠标右键选择git bash here 然后输入ssh-keygen -t rsa -C “公钥标题key”   列: ssh-keygen -t rsa -C “xxxx@xxx.com”

git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

 

第四步:打开 .ssh 文件 ,复制id_rsa.pub 里面的字符串

第五步:打开gitee,在设置里面找到,如图所示

git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

 

     把复制的字符串粘贴在公钥里面去

---------------------------------------------------------------------------------------------------

此时如果git clone 拉取报  Host key verification failed. 如图所示

git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

 

 注意:此处需要输入yes

git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

 

 完成之后在git clone ‘地址’,就成功了