I'm trying to clone an empty repository from my Gitlab account. I simply use the address shown on my Gitlab repository page under SSH
:
git@gitlab.xxx.com:USERNAME/project-name.git
Then simply try this in an empty folder, but it keeps telling me permission denided, asking for retry:
git clone git@gitlab.xxx.com:USERNAME/project-name.git
Cloning into 'project-name'...
git@gitlab.xxx.com's password:
Permission denied, please try again.
git@gitlab.xxx.com's password:
and when I choose the https
address for clone, this is the message:
remote: HTTP Basic: Access denied
fatal: Authentication failed for ....
I am able to login to Gitlab
homepage with that password, so I don't know what is really wrong.
What is wrong? How to fix it?