cmake git clone via ssh fails on windows with Host key verification failed

28 Views Asked by At

i have a C program which is build using cmake unter linux and macOS fine. I tried to cross-compile it under windows with cmake -G "Unix Makefiles" .. but I ran into a strange error.

Within the cmake file I am cloning several libraries to build my main program via ssh.

However, the clone process always fails with the error message:

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

I tried to add my ssh key with ssh-add to the ssh agent but this does not solve my problem.

Does anyone has an explanation and solution for me?

Update: I can clone the repos from CLI under windows without any problem, the error only occurs when using cmake.

0

There are 0 best solutions below