Git error: Please make sure you have the correct access rights and the repository exists

DevOps

I am using TortoiseGit on Windows. When I am trying to Clone from the context menu of the standard Windows Explorer, I get this error:

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

More precisely, the snapshot of the terminal is the following:

git.exe clone --progress -v "git@chandradev:\git\chandra.git" "C:\Work\Chandra"
Cloning into 'C:\Work\Chandra'...
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

What should I do to make git work properly?

2
Answers

Replies

You have to add your SSH key in the repository. Execute the below command.



$ cat ~/.ssh/id_rsa.pub



You will get the SSH key. Go to profile settings in git and then add the key in the SSH keys option.

 

The reason for this is that your ssh key might not have been added with ssh agent. Execute the below commands.



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


$ ssh-add

 
 

If you want to unleash your potential in this competitive field, please visit the DevOps course page for more information, where you can find the DevOps tutorials and DevOps frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.