algogator
algogator

Reputation: 97

Host key verification failed on raspberry pi

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.```

Upvotes: 2

Views: 520

Answers (1)

VonC
VonC

Reputation: 1324515

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.

Upvotes: 1

Related Questions