I setup a deploy key on Gitlab for our project and add it in our config.yml with the following command
- add_ssh_keys: fingerprints: - "xx:xx:xx"
This used to work out of the box, but now for some reason the key is not added to known_hosts automatically. I can see that the IdentityFile is added in .ssh/config, but only after I ssh in to the build machine and run the following cmd the key is added to known_hosts.
ssh -T email@example.com The authenticity of host 'gitlab.com (188.8.131.52)' can't be established. ECDSA key fingerprint is SHA256:xxx. Are you sure you want to continue connecting (yes/no)? yes
add_ssh_keys command do this automatically or do I need to append the key manually to
known_hosts or do something like
"echo -e "Host gitlab.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config"?