git clone reported error 10054, solution

When using git clone to download the project, the error message is as follows:

fatal: unable to access 'https://github.com/deozhang/GaoZhongShuXue.git/': OpenSSL SSL_read: Connection was reset, errno 10054

The code of the error message is 10054. According to the prompt and online search results, it can be known that it is a problem with the ssl certificate.

The specific error window is shown in the figure below:

8753b835e4f406a3da50a6adf08a5bd2.png

The specific solution is as follows:

Method 1: git config --global http.sslVerify "false" (ignore certificate ssl certificate errors). Not personally tested.

The reference is as follows:

https://blog.csdn.net/casey130/article/details/123057676

Method 2: Change https to git, and clone and download again.

The reference is as follows:

https://blog.csdn.net/weixin_45703155/article/details/117875024

The actual test was unsuccessful, as follows:

cabcb686252f99c4180f6bc523cf5354.png

Method 3: Because git supports https and git two transmission protocols, github will have two protocols to choose from when sharing links, so you can use ssh to download.

General steps:

1. Generate a key pair

2. Set the public key on the remote warehouse

3. Use ssh to download the link

You can search for specific configurations by yourself.

The reference is as follows:

https://www.cnblogs.com/akidongzi/p/8366535.html

Method 4: Change https to http, clone and download again.

Referring to method 2, can you change https to http and clone and download again. After personal actual testing, it is found that this method is feasible.

The actual test is as follows:

5a08754451754cbaf1e56c62c5354c4d.png

It can be seen that the project is successfully downloaded to the local file.

8387dbd353ef462e34d50c74d97fd89c.png

Welcome to pay attention to personal public number:

ca78eb8ae359919e0d52602dad14b1ab.png

Guess you like

Origin blog.csdn.net/weixin_46158019/article/details/130838494