Debug School

rakesh kumar
rakesh kumar

Posted on • Updated on

Git error:How to solve Permission denied (publickey) error when using Git

Error:How to solve Permission denied (publickey) error when using Git
git-how-to-solve-permission-denied-publickey-error-when-using-git
git-how-to-solve-permission-denied-publickey-error-when-using-git

Cloning into 'Rakesh-repository'...
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.
Enter fullscreen mode Exit fullscreen mode

solution:
run commands

tail ~/.ssh/id_rsa
Enter fullscreen mode Exit fullscreen mode

===========OR===================
/root/.ssh

vi id_rsa.pub
Enter fullscreen mode Exit fullscreen mode

copy and paste

go to github==> setting===>ssh and gpg key

Image description

Image description

and paste here

Top comments (0)