Pushing to private gitlab repository from remote docker

Hello I am using docker with ubuntu image. And have access to its terminal (using in interactive mode via VS code containers). I am trying to push code via personal access token (with all needed rights) but I am failing to do this.

git push <token>@gitlab.com:LSSI/AI4AR/konwersjaJsonData.git


Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

access rights - I I understand correctly it is about what checkboes I checked when creating token - I checked all for now (easier debugging for now)
When I get into gitlab and click clone I get


so repository exists

Any idea What am I doing wrong?


As mentioned in the docs, I believe your origin url should be in format of


Username apparently can be anything but a blank string.

1 Like