Disconnecting: Protocol error: expected packet type 31, got 94

when ever we try to clone over ssh the audio repo which is of 65+GB in size , we are getting below Error . Any suggestion please ?

we are able to clone using file:// protocol & repo heath is fine …

git clone ssh://server-gerrit/project_Q2/audio
Cloning into ‘audio’…
X11 forwarding request failed on channel 0
remote: Counting objects: 23944, done
remote: Finding sources: 100% (23944/23944)
Disconnecting: Protocol error: expected packet type 31, got 94
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

  • Why would git-upload-pack (during git clone) hang?
  • Why git clone git:// is not working
  • git push php and host key verification failed
  • Capistrano + Git - “unable to find”
  • fatal: 'jigar/test.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly
  • Capistrano+ssh+git: 'cap shell' 'git remote-ls' is OK, but 'cap deploy' falls on “Permission denied (public key)”
  • git push origin master gives error permission denied (github)
  • Giving VersionPress write permissions via ssh on bitnami WP ami running on EC2 instance
  • One Solution collect form web for “Disconnecting: Protocol error: expected packet type 31, got 94”

    This issue proposes the following workaround, using a shallow clone:

    Workaround Git 1.8+:

    #find the highest N that will work
    git clone --depth N  ssh://git@stashhost:7999/stash/stash.git
    git fetch --unshallow
    

    Since it doesn’t work, I mentioned in the comments the bundle technique, which allows for incremental bundles.

    The OP adds:

    We split the repo and managed it that way.

    Git Baby is a git and github fan, let's start git clone.