Issues when using ssh clone project from Github
天蓬老师
天蓬老师 2017-05-02 09:32:44
0
5
674

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.

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(5)
给我你的怀抱

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

Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template