'git ssh_exchange_identification: read: Software caused connection abort

Today I fork a project into my github from https://github.com/bhlx3lyx7/incubator-griffin/tree/master. When I use git clone command like this: git clone [email protected]:ahutsunshine/incubator-griffin.git measure-json.A big problem has come up.The following photo is the problem.Do you have some advice to solve it ? enter image description here

enter image description here

enter image description here



Solution 1:[1]

The issue you're facing is nothing to do with git first. Its SSH identification failure. First, check your environment.

This is local environment issue. The error clearly says no such file or directory.

Find this file key_load_public. The key file is missing, you need to add the key file if its missing.

Solution 2:[2]

Thanks you all.Now I have solved this problem.The key to the problem is git url(ssh or https).

If you use clone with ssh,like [email protected]:apache/incubator-griffin.git,it will be wrong. enter image description here

However,if you use clone with https,like https://github.com/apache/incubator-griffin.git,it will clone successfully.

enter image description here

After reviewing related document?I find they currently recommend HTTPS because it is the easiest to set up on the widest range of networks and platforms, and by users who are new to all this.

  1. HTTPS is less likely to be blocked by a firewall.

    https://help.github.com/articles/which-remote-url-should-i-use/

    enter image description here

  2. An HTTPS connection allows credential.helper to cache your password.

    https://help.github.com/articles/set-up-git

    enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 danglingpointer
Solution 2 flynn