Git push remote: HTTP Basic: Access denied

errors:

remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/...proj.git

cannot push to remote. have added ssh keys

have confirmed can ssh to gitlab and authenticate with ssh password:

ssh -T git@gitlab.com
Welcome to GitLab, @user!

Thats because you are still trying to push over https. You need to change the connection so it uses git@github.com/…/proj.git