Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied (publickey) error when using Git?

I'm trying to push my project after git commit but i face an error:

git push
sign_and_send_pubkey: signing failed for RSA "/home/acer/.ssh/id_rsa" 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.

Is wired because i push other changes before on the same project and this error is present only in this one!!!!

like image 531
Gazmir Sulcaj Avatar asked Oct 24 '25 13:10

Gazmir Sulcaj


1 Answers

Solved thanks to $ ssh-add ~/.ssh/id_rsa

like image 70
Sébastien Serre Avatar answered Oct 26 '25 05:10

Sébastien Serre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!