Cygwin "git clone" gives "remote end hangs unexpectedly" against Ubuntu 10.04.1

I am now understanding how to get Eclipse (Windows 7) to work with our recently reorganized git CVS repository, which I installed on gitosis on the UTS host Ubuntu 10.04.1. All software is installed using apt-get (git, gitosis, etc.).

Eclipse with egit freezes when trying to verify, so I play with command line clients. Cygwin has git and openssh, so I would like this to work at least (then we can use Eclipse for a local copy). To make babysteps only, I cloned the gitosis repository on another Ubuntu node with lots of disk space and tried to clone it in a Windows window.

I get the following error message, which puzzles me a bit:

tra@TRA /cygdrive/c/Users/tra/git
$ git clone ravn@10.49.160.91:/home/ravn/cvs2git/git00
Cloning into git00...
Enter passphrase for key '/home/tra/.ssh/id_rsa':
remote: Counting objects: 64045, done.
remote: Compressing objects: 100% (17965/17965), done.
fatal: The remote end hung up unexpectedly.98 MiB | 8.21 MiB/s
fatal: early EOFs:  98% (62852/64045), 310.98 MiB | 8.21 MiB/s
fatal: index-pack failed

git is 1.7.0.4 in the Ubuntu field and 1.7.2.3 in Cygwin. scp and sftp work beautifully.

Is there some kind of Voodoo trick I need to know to make this work?

+1
source share
3 answers
  • You must first publish your ssh public key in a file 10.49.160.91:/home/ravn/.ssh/authorized_keysso that you no longer enter your passphrase.

  • The second such error usually occurs in the interaction environment, with files with the same name, but with a different case.
    Can you check if you have such a problem.

Make sure also:

( OP Thorbjørn) git checkout msysgit , mingw ( git, cygwin)

+1

, . Cygwin Git PuTTY ssh Cygwin ssh.

PuTTY - Cygwin:

Cygwin , , Cygwin/OpenSSL/ Git Git 1.7.1 ( Git 1.7.3.3, )

Cygwin Git + Cygwin ssh, , , .

  • puttygen.exe, plink.exe, pageant.exe putty.exe - PuTTY.
  • puttygen.exe, Cygwin.ssh PuTTY.ppk, -.
  • pageant.exe, PuTTY .
  • putty.exe ssh , , Git, ssh- Windows.
  • , Git PuTTY Cygwin ssh. GIT_SSH, plink.exe. , export GIT_SSH=/cygdrive/c/somedirectory/plink.exe

+1

?

cygwin cygwin, mingw git git bash shell?

, , cygwin ssh .ssh /home/name/.ssh mingw git ssh .ssh c:/user/name/.ssh

, .

cygwin.ssh -i ssh /home/name/.ssh/config.

, :

Host github.com
    User jerryasher
    Hostname github.com
    IdentityFile c:/Users/jerry/.ssh/id_rsa

, mingw git git bash, cygwin git rxvt github.

0

Source: https://habr.com/ru/post/1776592/


All Articles