Answers for "[email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists."

3

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

Connect local git to remote step by step please not not skip any step and checkt the attach link for source

$ ssh-keygen -t ed25519 -C "[email protected]"
press enter 3 times
1st > Enter a file in which to save the key (/Users/you/.ssh/id_ed25519): [Press enter]
2nd > Enter passphrase (empty for no passphrase): [Type a passphrase]
3rd> Enter same passphrase again: [Type passphrase again]
=================== done with key genrate process==================
your key is stored the (1st step) path when your enter first time

°°°°°°°°°°°°°°°°°°°°°°Adding your SSH key to the ssh-agent °°°°°°°°°°°°
Step 1)))))))))))
check the key id by run this
==) > eval "$(ssh-agent -s)" it will return you a key exmple:  
Agent pid 59566

Step 2))))))))))))
First, check to see if your ~/.ssh/config file exists in the default location.

====>  open ~/.ssh/config 
if yes it will open the textEditor for your
Else throw this error (The file /Users/you/.ssh/config does not exist.))
######## if its error then create new ./config like this

>  touch ~/.ssh/config

Now again run this command 

====>  open ~/.ssh/config 
############################################################
Step 3))))))))))))
you must have open texteditor when you run this command 

====>  open ~/.ssh/config 

Now add this code 
____________________________
Host *
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519
  
____________________________

keep in mind the (IdentityFile ~/.ssh/id_ed25519 )
the id must be (exp : id_ed25519)  same as when you run this command

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

Now save and close the terminal
Last step)============  ssh-add -K ~/.ssh/id_ed25519  //your id 

Done on local now lets add this key to ( GITHUB )

Runt this command 
> pbcopy < ~/.ssh/id_ed25519.pub
this will copy the key in your clipboard 

try to paste any where to check Ctrl + V

========================Open Git account =========================
click Settings >  SSH and GPG keys >  New SSH key or Add SSH key. 

Now add any title and press Ctrl+ V  
the key is in you clipboard 

now save  the key and 

>.   git remote add origin https://github.com/user/repo.git 
PAth copy the ssh repo path and add after 
git remote add (path to your repo)

ALL done now try to run git pull on you local

you will get the the repo content on lcoal

Or git push if you want to push to remote repo

°°°°°°°°°°°        THanks happy Coding     °°°°°°°°°°°°°°°°°
Posted by: Guest on July-20-2021
0

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

ssh-agent -s
ssh-add ~/.ssh/id_rsa
Posted by: Guest on September-28-2021
0

reported error code “128” when it ended: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

ssh-keygen -t rsa -b 2048 -C "[email protected]"
Posted by: Guest on October-26-2020
3

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

GitHub isn't able to authenticate you. So, either you aren't setup with an SSH key, because you haven't set one up on your machine, or your key isn't associated with your GitHub account.

You can also use the HTTPS URL instead of the SSH/git URL to avoid having to deal with SSH keys. This is GitHub's recommended method.

Further, GitHub has a help page specifically for that error message, and explains in more detail everything you could check.
Posted by: Guest on July-20-2021
1

heroku fatal: could not read from remote repository. please make sure you have the correct access rights and the repository exists.

I had the exact same error (on windows 7) and the cause was different. I solved it in a different way so I thought I'd add the cause and solution here for others.

Even though the error seemed to point to heroku really the error was saying "Heroku can't get to the git repository". I swore I had the same keys on all the servers because I created it and uploaded it to one after the other at the same time.

After spending almost a day on this I realized that because git was only showing me the fingerprint and not the actual key. I couldn't verify that it's key matched the one on my HD or heroku. I looked in the known hosts file and guess what... it shows the keys for each server and I was able to clearly see that the git and heroku public keys did not match.

1) I deleted all the files in my key folder, the key from github using their website, and the key from heroku using git bash and the command heroku keys:clear

2) Followed github's instructions here to generate a new key pair and upload the public key to git

3) using git bash- heroku keys:add to upload the same key to heroku.

Now git push heroku master works.

what a nightmare, hope this helped somebody.
Posted by: Guest on November-03-2020
0

Output: [email protected]: Permission denied (publickey)

don't use passphrase when creating keys... 
especially when using this as a node package, 
coz even if prompted it won't work during installation
Posted by: Guest on October-03-2021

Code answers related to "[email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists."

Code answers related to "TypeScript"

Browse Popular Code Answers by Language