'I can't do git push: [email protected]: Permission denied (publickey)

I'm not able to perform the git push command in a specific project, however, in other projects everything goes well, I don't know what can be done anymore. I have a key, this key is registered on GitHub and apparently the Agent is working.

This is the result when I try to git push:

username@lenovo-ideapad-s145:~/development/projects/Learning-Laravel$ git push
sign_and_send_pubkey: signing failed for ED25519 "/home/username/.ssh/id_ed25519" from agent: agent refused operation
[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've read the documentation, but it didn't help me much.



Solution 1:[1]

You wouldn't be have configured ssh in your machine. Check if this answer helps

GitHub Error Message - Permission denied (publickey)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lux