Host key verification failed on raspberry pi

Viewed 409

I already added the keys to gitlab-ci

 $ cd /home/pi/dashboard
 $ git fetch
 Host key verification failed.
 fatal: Could not read from remote repository.
 Please make sure you have the correct access rights
 and the repository exists.```
1 Answers

You could try and scan for your gitlab-ci server first

ssh-keygen -R domain.com
ssh-keyscan -t rsa domain.com >> ~/.ssh/known_hosts

(REplace 'domain.com' by your gitlab-ci server)

Then try your git fetch again.

Related