Devendra Bobde
Devendra Bobde

Reputation: 125

ERROR: Repository not found. fatal: The remote end hung up unexpectedly

I have worked around but not able to fix the solution, I became a collaborator for a private repository, and now I am cloning that repository so I am getting this error. I cross-verified ssh-key in my github account, Its all there in place. I can clone other repositories in which also I am as a collaborator. Dont know why, when cloning this repository its giving me the error.

Upvotes: 1

Views: 2330

Answers (2)

suzumakes
suzumakes

Reputation: 770

I had this problem today.

Starting the ssh-agent

$ eval "$(ssh-agent -s)"

and confirming my identity

$ ssh-add ~/.ssh/id_rsa

fixed the issue, even though I could ssh -T [email protected] successfully before.

Upvotes: 1

Devendra Bobde
Devendra Bobde

Reputation: 125

Add manual git configuration for specific host with specific ssh-key,

touch ~/.ssh/config

vi ~/.ssh/config

Host github.com HostName github.com User git IdentityFile ~/.ssh/id_rsa

That's It!

Upvotes: 1

Related Questions