'Not able to clone private repo from github using ssh
I have an account with github.com for some time now. Have my ssh key added and can clone other public as well as private (once granted) repos without any problem.
Below command to confirm that github authentication is successful.
$ ssh -T [email protected]
Hi naidu! You've successfully authenticated, but GitHub does not provide shell access.
$
Lately me and my friend was given access to a private repository. My friend can clone the repo but I cannot. When I try, I get below error:
$ git clone [email protected]:private_org_repo/xxxx-yyyy.git
Cloning into 'xxxx-yyyy'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
$
Searched whole internet looking for a possible glitch but I could not find any solution so far. I am able to clone using https but this is not what I want.
Anyone can give some clues on what else to try?
Solution 1:[1]
Was bit wired but deleting the existing keys at github.com and reading helped. Cannot explain why it worked though.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | BTR Naidu |
