search

Home  >  Q&A  >  body text

Issues when using ssh clone project from Github

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.

天蓬老师天蓬老师2803 days ago687

reply all(5)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-02 09:34:44

    I found the final answer, it’s because of the wall.

    Everything works normally in an external network environment.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-02 09:34:44

    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

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:34:44

    The public key has been added, can you provide how your private key is configured?

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:34:44

    How to generate public and private keys: https://help.github.com/articles/generating-an-ssh-key/

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:34:44

    You don’t have a processing key in your github settings

    reply
    0
  • Cancelreply