Closed davidwindell closed 8 years ago
Ah, ignore this, I missed that it was the Host key that was failing. Adding;
ssh-keyscan -H 'git.xyz.com' >> $HOME/.ssh/known_hosts
to the build step fixed this.
ssh-keyscan github.com | sort -u - ~/.ssh/known_hosts -o ~/.ssh/known_hosts
may help avoid duplicate entries in the known_hosts
The deploy keys don't appear to be usable by runners that want to git clone during a build phase.
I have copied
id_rsa.pub
from the containers/home/gitlab_ci_multi_runner/data/.ssh
into Deploy Keys for a project but still get "Host key verification failed".