Github uses ssh clone project to return the following error
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
How to solve it?
I have added the public key to Github
It is possible to use HTTPS URL clone. Just SSH won’t work
I also use the coding service. There is no problem when the same public key is used in coding. And the https method is no problem.
In the end, it felt like it was blocked by a wall or caused by DNS pollution. Because after pinging github.com, the IP is 1.1.1.1 and cannot be connected.
I found the final answer, it’s because of the wall.
Everything works normally in an external network environment.
It should be because you don’t have permission
Add your computer’s public key to your GitHub account
How to generate a public key and search by yourself
The public key has been added, can you provide how your private key is configured?
How to generate public and private keys: https://help.github.com/articles/generating-an-ssh-key/
You don’t have a processing key in your github settings