2

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.```
algogator
  • 97
  • 2
  • 9

1 Answers1

1

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250