[Git & GitHub] 解决办法:Could not read from remote repository.Please make sure you have the...

问题描述:执行git pull的时候出现下列错误信息


Could not read from remote repository.Please make sure you have the correct access right

解决办法

      01.  打开CMD终端、或者git bash输入: ssh-keygen -t rsa -C "[email protected]"如果执行成功返回:

Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/IBM_ADMIN/.ssh/id_rsa)

      02.  出现上步信息后、直接按回车、返回下面信息:

Enter passphrase (empty for no passphrase):

      03.  再次回车

Enter same passphrase again:

      04.  再次回车

Your identification has been saved in /c/Users/IBM_ADMIN/.ssh/id_rsa.
Your public key has been saved in /c/Users/IBM_ADMIN/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:The secret key string/The secret key string [email protected]
The key's randomart image is:
+---[RSA 2048]----+
|   .+oB++.+ .    |
| . . *+= + o     |
|  o @ ...        |
|   = B.o . +     |
|    o ..S B .    |
|   .   *.= o     |
|    . . =.+      |
|   . .   =.      |
|  Eoo     .o.    |
+----[SHA256]-----+:

      05.  出现上步信息后、说明SSH key已经生成、其路径为:/c/Users/IBM_ADMIN/.ssh/id_rsa.pub、有的小伙伴说在此步之后需要自己在github网页上创建添加自己的SSH key、但是此处为止我在自己的github账户内已经看到自己的sshkey已经生成了


      06.  如果没有生成、请继续执行此步以后的操作、在控制台继续执行:cat /c/Users/IBM_ADMIN/.ssh/id_rsa.pub后、出现下列信息、其中ssh-rsa后的一长串即为自己的SSH Key、将其复制到自己的github账户、创建SSH即可

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDt/The secret key string/TThe secret key stringLAGwxSUY6wVSCIcrlk/The secret key stringjITt1+0sThe secret key stringL/iThe secret key stringA/du9P8YThe secret key string9GHWeptVNYjhzWrPvg+jaEMVwCC4The secret key stringlwD/Dw3IJx1XWPP/o3Zw67NkThe secret key stringqZeFbNHd148+XDThe secret key stringkFn3DR [email protected]:


本文原创由`bluetata`发布于blog.csdn.net、转载请务必注明出处。



[Git & GitHub] 解决办法:Could not read from remote repository.Please make sure you have the..._第1张图片

你可能感兴趣的:([05],踩坑记录,[04],Ver.Control-Git,&,GitHub)