Authentication failed for 'https://gitlab-ci-token:@gitlab.com/...

Summary

I have a repository which I could clone manually before. After adding a deploy key and deleting it, I can no longer clone the repository via ssh on my command line.

I get the following result

$ git clone --recursive git@gitlab.com:craftmetrics/project.git

Cloning into 'project'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab-ci-token:@gitlab.com/craftmetrics/project.git'

For some reason there is no token after the gitlab-ci-token: an I don't even know why it uses the gitlab-ci-token user and not the git user

Edited by Elvis