git@github.com: Permission denied (publickey)
Feb 8, 2025
In this tutorial im going to setup ssh key on linux.
Error :-
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.
Solutions:-
ssh-keygen
Next go to below path
/root/.ssh/id_ed25519.pub
Copy below public key
Click on new ssh key and put there
Now successfully configure with Linux now you can git clone using ssh-key