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.
Press enter or click to view image in full size
Solutions:-
ssh-keygen
Press enter or click to view image in full size
Next go to below path
/root/.ssh/id_ed25519.pub
Copy below public key
Press enter or click to view image in full size
Press enter or click to view image in full size
Click on new ssh key and put there
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Now successfully configure with Linux now you can git clone using ssh-key