Fix cloning permissions
The problem was that the gitlab-runner on dori (run as svc-jaws user) did not have permissions to push to the jaws-docs repository at gitlab.com/jfroula/jaws-docs.git. I switched from http to ssh protocol for pushing and cloning from that repo which meant I had to generate and add the ssh-key to that repo. Because the ssh-key file uses a custom name, I had to also modify the ~/.ssh/config file. However, inside this file, there is a regular expression that is too general and thus interfering with my added block:
Here is the problem block. We need to make the Host regex more specific.
Host *
IdentityFile ~/.ssh/perceus
StrictHostKeyChecking=no
PubkeyAcceptedKeyTypes=+ssh-dss
My added block: This doesn't work unless the above "Host *" is commented out:
Host 172.65.251.78
IdentityFile ~/.ssh/gitlab_id_ed25519
StrictHostKeyChecking=no
Edited by Jeff L Froula