4

I am currently using SSH Key to clone repository from AWS Codecommit to my local machine. My

ssh git-codecommit.us-east-2.amazonaws.com

has successfully connected.

My problem is that when I run this:

git clone ssh://git-codecommit.us-east-2.amazonaws.com.amazonaws.com/v1/repos/Project

it is cloning my project but after 100% of cloning, I keep getting this error

remote: Counting objects: 1024, done.
client_loop: send disconnect: Connection reset by peer KiB/s
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I cannot find answers around google and hoping that someone will help me with this. What is the possible causes of these error? Thank you in advance!

JSTR
  • 131
  • 13
  • 1
    And if you create another repo can you clone it? – loic.lopez Feb 19 '20 at 08:30
  • 1
    Could you try to verbose, maybe you can get more info `git clone -vvv ssh://git-codecommit.us-east-2.amazonaws.com.amazonaws.com/v1/repos/Project` – Vadim Sirbu Feb 19 '20 at 08:33
  • @loic.lopez yes, I tried cloning another repo but still the same output – JSTR Feb 19 '20 at 08:52
  • @VadimSirbu It failed but displayed this before cloning `Server supports shallow` `Server supports multi_ack_detailed` `Server supports side-band-64k` `Server supports allow-tip-sha1-in-want` `Server supports allow-reachable-sha1-in-want` – JSTR Feb 19 '20 at 08:55

2 Answers2

4

Try increasing the buffer

git config --global ssh.postBuffer 1048576000

If it doesn't work then use TortoiseGit software, It helped me when I faced the same problem like yours

Udhav Sarvaiya
  • 9,380
  • 13
  • 53
  • 64
0

Thanks everyone! its working now. Increasing postbuffer did a lot of help but in my case that is not the reason why its working. You guys should check your firewall, vpn connection or your network for their security purposes.

This site might help you resolving the issue Git Clone Fails - fatal: The remote end hung up unexpectedly. fatal: early EOF fatal: index-pack failed

JSTR
  • 131
  • 13