1

I am tring to pull the all code from code-cloud using git fetch all. I have done the proper ssh keysetup and tested it. But while using in jenkins free-style job , during fetch it is failing with host key verificiation error.

Code:
+ /usr/bin/git fetch --all

Error:
Fetching origin
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Please help us on this. The key-setup is fine and code-cloud url is also fine.
phd
  • 82,685
  • 13
  • 120
  • 165
  • What does git remote show origin say? – Christoph Dec 05 '18 at 06:19
  • /usr/bin/git remote show origin : Host key verification failed fatal: Could not read from remote repo . Please make sure you have right access rights and repo exists – Manigandan Thanigai Arasu Dec 05 '18 at 06:36
  • Another test: `git config --list --show-origin`? – Christoph Dec 05 '18 at 12:17
  • 1
    Possible duplicate of [Git error: "Host Key Verification Failed" when connecting to remote repository](https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository) – phd Dec 05 '18 at 12:52
  • https://stackoverflow.com/search?q=%5Bgit%5D+Host+key+verification+failed. – phd Dec 05 '18 at 12:52
  • Reply to git config --list --show-origin: file:.git/config core.repositoryformatversion=0 file:.git/config core.filemode=true file:.git/config core.bare=false file:.git/config core.logallrefupdates=true file:.git/config – Manigandan Thanigai Arasu Dec 05 '18 at 16:35

0 Answers0