Unable to access renamed private repository via SSH and GitHub CLI #170642
Replies: 4 comments
-
|
Hello Gianluca 👋, Thank you for providing the detailed steps you’ve already taken — that’s very helpful. Since you’re able to authenticate with GitHub over SSH, the issue seems to be related to repository access rather than SSH itself. Here are a few things to check: 1. Confirm repository name and case sensitivityGitHub repository names are case-sensitive. Please double-check the exact repository name under the 2. Verify repository locationEnsure the repository still exists under 3. Check organization SSO (if enabled)If your organization uses SAML Single Sign-On (SSO), you’ll need to authorize your SSH key with SSO. 4. Re-clone with HTTPS as a testTry cloning with HTTPS: git clone https://github.com/foomakers/pair.gitIf HTTPS works, the issue is specific to SSH key/SSO authorization.
Even though you’re an admin, double-check under the foomakers organization settings if your role and repo permissions are still intact after the rename. If the issue persists Ask another org admin to confirm the repository’s visibility and location. If everything looks correct, open a ticket with GitHub Support so they can confirm if there’s a backend issue with the repository rename. |
Beta Was this translation helpful? Give feedback.
-
|
If Your Problem did not Solve you can dm me!! ✅ 1. Verify the actual repository path and case sensitivityOn GitHub, go to the new repository URL and confirm its owner and name. SSH URLs are case-sensitive, so: Double-check: If it shows an old name or wrong case, fix it: ✅ 2. Check if the repo really exists for your accountRun: You should see: Now test repository access explicitly: If this fails with Repository not found, it means:
✅ 3. Verify your GitHub user for the SSH keyRun: If it authenticates as the wrong user or machine user, check: Look for any custom ✅ 4. Check for repository rename redirectGitHub automatically creates an HTTP redirect for renamed repos, but SSH doesn’t follow redirects. If you are unsure, open: If it redirects, the old name is not valid for SSH anymore. ✅ 5. Ensure correct organization permissionsIf this is in an organization repo, verify:
✅ 6. Re-clone to testAs a final check: If this fails the same way, then it’s definitely an access or key-authorization issue. Most common root causes after rename:
|
Beta Was this translation helpful? Give feedback.
-
|
thank to all. I solved. I have multiple ssh keys in my confing and I forgot to change the right hostname in the repo url to select the correct key. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hello,
I am experiencing an issue when trying to access the private repository foomakers/pair via SSH.
The repository was recently renamed.
I have updated the remote URL in my local repository to the new SSH address: [email protected]:foomakers/pair.git.
I have also tried cloning the repository using both the GitHub CLI (gh repo clone foomakers/pair) and the new SSH URL directly.
My GitHub username is: gianluca-carucci_kering
I have access permissions (I am an admin).
My SSH key is correctly associated with my account (tested with ssh -T [email protected]).
The command git pull origin main returns:
ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
I have already tried:
Updating my SSH key
Verifying my permissions
Waiting for permission propagation
Could you please help me resolve this issue?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions