Eugene Yu
Eugene Yu

Reputation: 3958

git clone over ssh error 'fatal: The remote end hung up unexpectedly'

I'm pretty new to using git and have been struggling to get it work for the last 2 days and now I feel so stupid that I still haven't got it working yet.

I've seen many posts talking about the similar error but none of the answers solved my problem.

my situation here is

  1. project git called itko-ext.git is stored in a server and I have an access via ssh

  2. So I create a repositary directory on my local storage and used git init

  3. To copy the itko-ext.git into my repositary, I used git clone ssh://username@host/home/shared/g_quoll/repos/itko-ext.git

    • and this gives me an error fatal: The remote end hung up unexpectedly.
    • I have access to the resource.

I will appreciate any solution.

Regards

Upvotes: 3

Views: 12844

Answers (2)

pcm
pcm

Reputation: 397

Can you verify that that A) you indeed can ssh into the server, and B) that the repository is exactly at the path specified?

You can do ssh username@host ls /home/shared/g_quoll/repos/ and see if there is a itko-ext.git directory there.

Upvotes: 0

Michael
Michael

Reputation: 2261

Try:

git clone username@host:/home/shared/g_quoll/repos/itko-ext

Upvotes: 2

Related Questions