"Host key verification failed" appears when gitlab runner goes to execute the script

  1. when using gitlab-ci to build a task, the following error occurs when executing the git clone task or push

tried
ssh-keyscan-t rsa github.com > > ~ / .ssh/known_hosts
failed

after query.

there is no problem with manual clone on the server where runner is located, but only when runner is listening. What is the reason?

Feb.26,2021

probably because your key is under the administrator directory, and the runner user does not have this rsa key


have you solved this problem? I have also encountered this problem.


floor

I have encountered the problem that the rsa key of gitlab-runner users is not set


, to see if there is no disable shared runner,. In this way, runner may not be the runner you expected, it may be running on other machines, but that machine does not have a corresponding rsa


I have encountered, has this problem been solved?

Menu