I added a ssh key to github and was able to fetch and push without any issue. The next day, when i turned on my computer and tried to fetch from github, i get the error
sign_and_send_pubkey: signing failed for ED25519 "/home/vyshnav/.ssh/id_ed25519" from agent: agent refused operationgit@github.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.I then deleted the key and made a new key and added to github and it worked again. But if i turn off or restart my pc, i get the same errors.
I am using Ubuntu 22.04
I followed this article to connect to github with ssh