How do you fix Please make sure you have the correct access rights and the repository exists?

  1. Home
  2. Git
  3. Git Fatal Could Not Read From Remote Repository Please Make Sure You Have The Correct Access Rights And The Repository Exists

Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists

Tags: git , github Answers: 1 | Viewed 311,656 times

I am getting this error -


D:\Projects\wamp\www\REPO [master]> git pull origin master
Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

The output of git remote -v


D:\Projects\wamp\www\REPO [master]> git remote -v
origin [email protected]:username/repo.git (fetch)
origin [email protected]:username/repo.git (push)

Final message of ssh -Tv [email protected] command -


Hi [My Username]! You've successfully authenticated, but GitHub does not provide shell access.

How can I solve it?


VonC answer at 2015-05-06 27

I asked in the discussion:



does ssh -T [email protected] ouput the same username (in Hi [My Username]!) as in the one used for the ssh url of your repo ([email protected]:username/repo.git)?


Sorry It not showing same name


That means somehow the credentials have changed.

One solution would be to at least copy %HOME%\.ssh\id_rsa.pub in the SSH keys section of the right GitHub account

The OP adds:



I am working on private repo. So In [email protected]:username/repo.git,



I replied:


If you were able to clone/push to that repo whose username is not your own GitHub account, that must be because you had your previous public ssh key added as a contributor to that repo by the repo's owner.


What next is to ask that same repo owner to add your current public ssh key %HOME%\.ssh\id_rsa.pub to the repo contributor list.

So check with the owner that you (meaning your public ssh key) are declared as a contributor.



* The answers/resolutions are collected from stackoverflow, are licensed under CC BY-SA 4.0

Some Code Answers


git push -u origin master

Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

eval "$(ssh-agent -s)" ssh-add -l -E md5

git remote add origin //github.com/career-karma-tutorials/ck-git

More Answers Related Git Fatal Could Not Read From Remote Repository Please Make Sure You Have The Correct Access Rights And The Repository Exists

git: fatal: Could not read from remote repository - Stack …

1 day ago Nov 21, 2012  · Please make sure you have the correct access rights and the repository exists. One problem here may be that the program is looking for [email protected]***.com. when I connect via ssh to my site I have a different username( lets say 'abc'). so maybe this should be [email protected]***.com.

Reviews: 10

Show details

See also: Git

Git fatal: Could not read from remote repository Solution

2 days ago Sep 21, 2020  · We can see that our “origin” remote uses HTTP instead of SSH. For an existing repository, we can change our URL to use SSH using the git remote set-url command: git remote set -url origin git@ github.com:career-karma-tutorials/ck-git. This command sets the “origin” URL to be equal to our SSH URL.

› 1.9/5 (10)
Estimated Reading Time: 5 mins

Show details

See also: Git

Git Please make sure you have the correct access rights

1 week ago The “Please make sure you have the correct access rights” error occurs if you do not have the right permissions to access a Git repository. To solve this error, make sure you are referring to the correct remote URL and that you have set up SSH authentication correctly. If this error occurs in an existing repository, check to make sure your remote U...

› 3.7/5 (3)
Published: Sep 19, 2020
Estimated Reading Time: 4 mins

Show details

github - Could not read from remote repository - Stack …

3 days ago Feb 17, 2017  · if you want to push/pull any repository from local to remote (git hub) first checkout. $ git push //<git-hub url>. working fine with username and passwd credential. $ git push git@<git-hub url>. fail. Could not read remote repository. Please make sure you have the correct access rights and the repository exists.

Show details

See also: Git

Git Version control fatal: Could not read from remote …

2 days ago Git Version control fatal: Could not read from remote repository ... fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Description .

Show details

Git error: "Please make sure you have the correct access …

1 week ago Please make sure you have the correct access rights and the repository exists More precisely, the snapshot of terminal is the following: git.exe clone --progress -v "git@arobotdev:\git\AlfaRobot.git" "C:\Work\AlfaRobot"

Show details

See also: Git

[email protected]: Permission denied (publickey). fatal: …

1 week ago Jan 08, 2020  · git remote add origin git@gitlab.com:my_name/repo.git git add . git commit -m 'commit' git push -u origin master Then I get the following error: git@gitlab.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Show details

See also: Git

Git : fatal: Could not read from remote repository. Please make …

3 days ago Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists change your …

Show details

Please make sure you have the correct access rights and the …

1 day ago Could not read from remote repository . Please make sure you have the correct access rights and the repository exists . That should work for you . In case it keeps happening for future repos or you want to try and fix this issue properly you should <b>make</b> <b>sure</b> that your ssh config was set correctly in ~/.ssh/config (if you have the ...

Show details

Could not access remote git repository - cdfy.salonbellamy.pl

1 week ago 1 day ago · git@gitlab.server.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I've recreated and configured the SSH keys several times now but I can't find the reason, why this isn't working.

Show details

See also: Git

Could not access remote git repository - coxl.dagon-sklep.pl

1 week ago Sep 23, 2021 · Please make sure you have the correct access rights and the repository exists. The problem has been solved when Git clone appears.Git Upload File Error: fatal: could not read from remote repository. [How to Solve] Git fetch upstream Error: XXX Permission denied (publickey). fatal: Could not read from remote repository.Además, podría …

Show details

See also: Git

Could not access remote git repository - iafoz.roofmasters.pl

1 week ago Feb 28, 2013 · $ git push origin master fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 3) I've tried to delete the repository from the admin panel and to create one afterwards. No change. To sum up : My git repository in not usable at all. Please help me..

Show details

See also: Git

Please leave your answer here:

How do I give permission to a Git repository?

Set permissions for a repository.
Open the web portal and choose the project where you want to add users or groups. ... .
To set the permissions for all Git repositories for a project, choose Git Repositories and then choose the security group whose permissions you want to manage. ... .
When done, choose Save changes..

How do I check access rights to a repository?

how can i check write access to a git repository, if i do have a clone of it? A very easy way to check is whether you see an edit 'pencil' icon in the top right of the README.MD on the main Code page of the repo (scroll down to it if there's a long list of top level files/folders).

Could not read from remote repository make sure you have the correct access rights?

The Git “fatal: Could not read from remote repository” error occurs when there is an issue authenticating with a Git repository. This is common if you have incorrectly set up SSH authentication. To solve this error, make sure your SSH key is in your keychain and you connecting to a repository using the correct URL.

How do you fix remote repository not found?

Please find below the working solution for Windows:.
Open Control Panel from the Start menu..
Select User Accounts..
Select the "Credential Manager"..
Click on "Manage Windows Credentials"..
Delete any credentials related to Git or GitHub..
Once you deleted all then try to clone again..

Toplist

Neuester Beitrag

Stichworte