“Enter password to unlock the private key” on 18.04 when no password has been set

I worked on a project without problem but since I upgraded to 18.04, when I try to use git it prompts a pop-up reading “Enter password to unlock the private key. An application wants access to the private key ‘loke@computer’, but it is locked”.

The problem is that my ssh key doesn’t have a password. I can cat it or open it in gedit for instance without my root password.

I still tried using my root password in the pop up, as well as leaving it blank, clicking cancel and trying other passwords but nothing is working and I still can’t use git.

I tried this but the first command gave me this error:

Error setting value: Can’t overwrite existing read-only value: Value for `/apps/gnome-keyring/daemon-components/ssh’ set in a read-only source at the front of your configuration path

and the second command didn’t return anything but didn’t change my situation either.

So far all the solutions I saw about closing this pop up is to delete your ssh key password, but what do I do if I don’t have one to begin with?