There is a repository i always use in Gitlabee. When I tried 'git pull origin modal_control
' in git bash, openSSH tab opens and ask to me username and password.
I entered the username and passwaord. But git bash gives me this output:
$ git pull origin modal_control
remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'read_repository' or
'write_repository' scope for Git over HTTP.
remote: You can generate one at
https://gitlabee....com/-/profile/personal_access_tokens
fatal: Authentication failed for 'https://gitlabee....com/__repository_name__'
I created access tokens and SSH key but it still not working
CodePudding user response:
Double check which username you used: SSH should not ask for username/password, since GitLab EE only uses the technical service account 'git
' (whose password is not public anyway)
Since the authentication has failed for an HTTPS URL, SSH should not be involved at all, and the username asked is indeed your Gitlabee account name.
That means you must enter as password your Gitlabee token (PAT), not your actual password.
Meaning once you have created your PAT, you can use it as your password, when prompted for a password.
CodePudding user response:
Solution: You have to create access token in gitlabee. Then, you can try again. When opened the openSSH tab, usurname is access token name and password is access token password.