Painfully slow clone speeds with msysgit & GitExtensions

If you install GitExtensions, up through the current 2.24 version (which comes bundled with the latest msysgit version 1.7.6-preview20110708), and use OpenSSH for your authentication (as opposed to Plink), you’ll likely notice some painfully slow cloning speeds. Like 1MB/sec on a 100Mb network kinda slow.

Thankfully, it’s a pretty easy fix. Apparently msysgit still comes bundled with an ancient version of OpenSSH:

$ ssh -V
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007

Until they get it updated, it’s easy to do yourself. Simply install the latest version of Cygwin, and make sure to search for and install OpenSSH on the package screen. Then go into the /bin directory of where you installed Cygwin, and copy the following files into C:\Program Files\Git\bin (or Program Files (x86) if you’re on 64-bit):

  • cygcrypto-0.9.8.dll
  • cyggcc_s-1.dll
  • cygssp-0.dll
  • cygwin1.dll
  • cygz.dll
  • ssh.exe
  • ssh-add.exe
  • ssh-agent.exe
  • ssh-keygen.exe
  • ssh-keyscan.exe

Checking the OpenSSH version should yield something a bit higher now:

$ ssh -V
OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011

Your clone speeds should be faster too. This upgrade bumped ours from literally around 1MB/sec to a bit over 10MB/sec. Nice.

3 Responses

  1. chantivlad Says:

    Thank you, i had exactly the same issue, and by investigating i also noticed that OpenSSH was very old.
    Really odd for an active recent project like msysgit IMO.

  2. Jan Says:

    Thank you very much!!!
    The updated list of files that I used is:

    cygasn1-8.dll
    cygcom_err-2.dll
    cygcrypt-0.dll
    cygcrypto-1.0.0.dll
    cyggcc_s-1.dll
    cyggssapi-3.dll
    cygheimbase-1.dll
    cygheimntlm-0.dll
    cyghx509-5.dll
    cygiconv-2.dll
    cygintl-8.dll
    cygkrb5-26.dll
    cygroken-18.dll
    cygsqlite3-0.dll
    cygssp-0.dll
    cygwin1.dll
    cygwind-0.dll
    cygz.dll
    ssh-add.exe
    ssh-agent.exe
    ssh-keygen.exe
    ssh-keyscan.exe
    ssh.exe

  3. Ettiene Says:

    Thanks for the help, our windows builds were taking 10 fold longer than the unix builds. This solved our issue

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.