Stijn Tallon
Stijn Tallon

Reputation: 376

Gitolite clone fails

Whenever i try to clone any repository on my laptop i get this message:

Unable to open connection:
Host does not existfatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

however, when i use the same private key from my desktop i can clone without problems.

The clients are both TortoiseGit on Windows.

I thought i must have done something wrong, but i can't figure out why so i tried to copy the cloned git repository from my desktop to my laptop and now i can modify (push/pull/commit) to that repository from my laptop.

So somewhere the authentication works, yet i can't clone.

And worst of all, this suddenly happened for another member in our team too.

What i did:

  1. Install TortoiseGit
  2. Install msysgit
  3. Setup ssh session in putty with the private key
  4. do a git clone with that session (this fails)

Same thing as i did on the desktop, yet there it works, here on the laptop it fails.

But manually copying the repository and making changes does work, like it's only the git clone that gets denied.

Upvotes: 2

Views: 893

Answers (1)

VonC
VonC

Reputation: 1329532

You can try the various debug tips mentioned in "git push to remote repository “Could not read from remote repository”".

But first, check if the issue persists when using openssh instead of plink.exe for ssh communication (as mention in this question).

You can change the settings in TortoiseGit in Settings>Network>SSH:

network

Upvotes: 3

Related Questions