With SSH key still I have to login when doing fetch

I have first created an SSH key (as explained here: https://docs.gitlab.com/ce/ssh/README.html) and then added it to my settings of my GitLab account, but still, every time I do something like “git fetch upstream” (for instance) it asks me first to login. How can I avoid this?

Hi,

can you share how you’ve created the SSH key pair, and where it is located on your client?

Cheers,
Michael

Hi,

I created it with: ssh-keygen -t ed25519 -C “mkolstein@ifae.es”.
And it is located here: .ssh/id_ed25519.pub
And it looks like this:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII54KBM52Jux7CZqUDtaUI4w5IE9qPzaxTgWOUa7X2S9 mkolstein@ifae.es
Cheers,

Machiel