Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

atif123's avatar

while pushing project in github it is showing error

root@atif-Lenovo-ideapad-330:/opt/lampp/htdocs/discussionforum# ^C root@atif-Lenovo-ideapad-330:/opt/lampp/htdocs/discussionforum# git push -u origin master [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.

i have set ssh key in github

0 likes
5 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Are you sure you are using the right user? Seems like you are root

muathye's avatar

You need sudo (super user) permission

1 like
atif123's avatar

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

jove's avatar

You present yourself with the wrong public key. If you created it under your own user you have to use that or you will need to create a new one for the root user.

Please or to participate in this conversation.