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

git@github:Permission denied(public key) Could not read from remote repository.please make sure you have the correct access rights and the repository exists

개인 프로젝트를 하던 중 깃허브 사용법을 제대로 숙지하지 않아서 유튜브를 보고 따라하는데
잘되다가

remote에서 막혔다. remote는 원격이라는 뜻...뜻을 몰라서 파파고 돌림..
파이참을 한국어버전을 써서 그런지 ...영
영어 공부를 해야겠다..

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

아무튼 + 버튼을 누르고 이름과 url을 넣어주면 되는데
git@github:Permission denied(public key) Could not read from remote repository.please make sure you have the correct access rights and the repository exists
에러가 발생했다.
역시 영어를 몰라서 파파고 돌림...
없는 주소라네,.. 확인을 해봤는데 있는데 왜 없다는거지?

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

이게 지금은 칸이 구별이 되는데..쓰는 모니터 하나가 해상도가 좀 낮아서 생각없이 그냥 복사했다가 ssh를 복사해버려서 발생한 에러였다. HTTPS로 바꾸고 복사하니 바로 해결됨..

느낀점..

정말 많은 깃허브 업로드 영상을 봤지만..
https://www.youtube.com/watch?v=AOn6UUscqQw 15분만에 업로드 할 수 있는 영상은
이게 처음이었던 것 같다. 2년 전의 영상이라 조금 다른 부분도 있는데 그래도 할 수는 있겠다..
윈도우가 아니라 맥이어서도 좀 아쉬웠는데 따라하는데 지장이 없었다!
나중에 또 봐야지!

영어 공부도 좀 해야겠다.

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments

I have this error :

root@u12-49330:/data# git :jakubroztocil/cloudtunes.git
git: ':jakubroztocil/cloudtunes.git' is not a git command. See 'git --help'.
root@u12-49330:/data# git clone :jakubroztocil/cloudtunes.git
Cloning into 'cloudtunes'...
Permission denied (publickey).
fatal: Could not read from remote repository.

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

your github is still good?

Just copy your /root/.ssh/id_rsa.pub content as new github SSH key (https://github.com/settings/ssh).

If you does't have id_rsa.pub, just create it with command ssh-keygen -t rsa

The instructions have been updated to clone over HTTPS. This should work with no issues:

$ git clone https://github.com/jakubroztocil/cloudtunes.git

Thanks that saved my night. Cloning over HTTPS solved my issue

I keep getting the same error even after cloning over https. Any idea why ?

hi

I have the similar error
when i run the puppet .
#############################
Host key verification failed.
fatal: Could not read from remote repository.

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

############################
i have my keys on my vm and my git is using the same key

please help me out
Thanks in ADVANCE

You'll get this error on windows even if you have puttygen'd a ppk from your github_rsa key and added the ppk in peagent... until you visit github.com in putty. A good reason not to use windows, I suppose.

  1. eval ssh-agent
  2. ssh-add ~/.ssh/your ssh key
  3. enter you ssh key pwd
  4. run any git command you want

1 删除.ssh 下面的known_hosts 文件
2 删除github上的密钥,并重新生成和添加密钥
3 设置.ssh

4 还是不成功,就是你家的网络问题。 建议换一个网络。 并且github是不需要翻墙的。

BTW, the workaround suggested by @SadieYuCN works! You can also kill the ssh-agent after doing git pull just once and everything returns back to normal.

Can anyone please solve my problem.... I am getting following error while cloning from github..

aadarsh@aadarsh-OptiPlex-9020:~/Desktop$ git clone :p4lang/behavioral-model.git bmv2
Cloning into 'bmv2'...
ssh: Could not resolve hostname github.com: Temporary failure in name resolution
fatal: Could not read from remote repository.

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

I solved that using the answer from here:

first:
$ eval "$(ssh-agent -s)"
next:
$ ssh-add

[When I type this command below]:
git clone :kjlee/bear.git

[Then, here are the output]
正克隆到 'bear'...
ssh: connect to host psr.pku.edu.cn port 22: Connection refused
fatal: Could not read from remote repository.

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

I have ssh key done.

I spent 3 hours and work around i did not find a solution the remote repo already exist i wonder why?
access rights denied

The instructions have been updated to clone over HTTPS. This should work with no issues:

$ git clone https://github.com/jakubroztocil/cloudtunes.git

Yo I am so glad I found this. Been trying to do school project and youtube aint helping. Thanks man!

had this problem on a mac and I discovered that simply by accessing the repository once from github desktop allows me to clone from the command line later

In windows 10 I used CWD in admin mode , as git bash didn't said this same error over and over. But first I tried the ssh agent in the comment above.

Repository owner locked as off-topic and limited conversation to collaborators

Dec 18, 2018

How do you solve please make sure you have the correct access rights and the repository exists?

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.

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).

How do I give access to my git rights?

Follow these steps:.
Ask for the username of the person you're inviting as a collaborator..
On GitHub, navigate to the main page of the repository..
Under your repository name, click Settings..
In the left sidebar, click Collaborators..
Under "Collaborators", start typing the collaborator's username..

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.