I created a repository on GitLab and I have a local project.
From: git remote -v
I get:
origin git@gitlab.com:projects/MyPrj.git (fetch)
origin git@gitlab.com:projects/MyPrj.git (push)
When I try to push it to the repository with:
git push origin master
I get this error:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I can access the repository with a web browser, but not from git from the command line.
What am I doing wrong?