Command line connection to git with username and password
I have migrated my old gitlab to the this university gitlab in the runup to gitlab's change of policy. However, in trying to command line connect to the new gitlab I can't gain access as it won't accept any version of my username and password (raven or one I set in the settings menu) to authenticate the connection. How do you connect to the gitlab from the command line with username and password?
In a windows bash shell it brings up a new window asking for username and password to authenticate but won't accept them:
$ git clone https://gitlab.developers.cam.ac.uk/slcu/teamhj/tamsin/vtk-simple-meshes.git
Cloning into 'vtk-simple-meshes'...
warning: missing OAuth configuration for gitlab.developers.cam.ac.uk - see https://aka.ms/gcm/gitlab for more information
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.developers.cam.ac.uk/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.developers.cam.ac.uk/slcu/teamhj/tamsin/vtk-simple-meshes.git/'
On my office Linux desktop computer (connecting on the VPN) it doesn't even get far enough to ask for username and password. It worked for the old gitlab but the issue here might be as the operating system is ubuntu 16:
git clone https://gitlab.developers.cam.ac.uk/slcu/teamhj/tamsin/vtk-simple-meshes.git
Cloning into 'vtk-simple-meshes'...
fatal: unable to access 'https://gitlab.developers.cam.ac.uk/slcu/teamhj/tamsin/vtk-simple-meshes.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Off the lab HPC which is ubuntu 20 it also doesn't work:
git clone https://gitlab.developers.cam.ac.uk/slcu/teamhj/tamsin/vtk-simple-meshes.git
Cloning into 'vtk-simple-meshes'...
Username for 'https://gitlab.developers.cam.ac.uk': tas46
Password for 'https://tas46@gitlab.developers.cam.ac.uk':
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.developers.cam.ac.uk/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.developers.cam.ac.uk/slcu/teamhj/tamsin/vtk-simple-meshes.git/'
issue