2023-04-24

Trying to pull in a folder inside /opt/lampp/htdocs: Permission denied (publickey). fatal: Could not read from remote repository

Im trying to pull my github project in my folder which is inside in htdocs. It doesnt matter what i do, it always throw the same error and i cant clone or pull from a remote repository.

The error i got is this:

"git@github.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 tried to make a new ssh key with rsa and added with the following command: ssh-add ~/.ssh/id_rsa Also, added it to my ssh keys in github. Addtionaly, i used the next command: ssh -T git@github.com to check if im using the correct keys.

The result of the last command above was: "Hi alfito69420! You've successfully authenticated, but GitHub does not provide shell access."

Finally, i tried to clone via http and the result was the same, i got the same error "Permission denied (publickey)...".

However, it still throwing the same error and i dont know what else can it be.

Finally, i have to add that if a make pull from other folder like someone in /Desktop theres no problem to pull.



No comments:

Post a Comment