Reputation: 566
I cannot clone the project although
ssh -T [email protected]
shows what I want: Welcome to GitLab, @vagnerwentz!
.
The error during cloning:
Cloning into 'jobfygo'...
Username for 'https://gitlab.com': vagnerwentz
Password for 'https://[email protected]':
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/jobfy/backend/jobfygo.git/'
Upvotes: 4
Views: 709
Reputation: 1329112
First, you are cloning with an HTTPS URL, which means all your SSH settings is for naught.
Second, regarding HTTPS, double-check if you have 2FA activated, because if you do, your password would actually be a PAT (Personal Access Token)
Third, if you do want to use SSH, then use the SSH URL:
[email protected]:jobfy/backend/jobfygo.git
By default, such an url would use the default private SSH key ~/.ssh/id_rsa
.
So if you have a key with another name, you would need to:
id_rsa
ssh -i /path/to/second/private/key
~/.ssh/config
fileUpvotes: 2