git::ssh://******@ssh.dev.azure.com/v3/ error downloading ssh://******@ssh.dev.azure.com/v3/: C:\azp\MinGit\cmd\git.exe exited with 128: Cloning into .terraform\modules\az-mod-rg'... Host key verification failed. fatal: Could not read from remote repository.

K, Nagaraju 0 Reputation points
2023-06-26T11:28:43.65+00:00

I am trying to download terraform module from azure repository using ssh authentication in release pipeline. I am getting below error. I am able to authenticate azure devops service using ssh from selfhostedwindows agent(running as pod in AKS) tested it using "ssh -T ******@ssh.dev.azure.com". It is working fine.

https://learn.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops

But it is not working in release pipeline.

I am getting below error.

git::ssh://@ssh.dev.azure.com/v3/xxxxxxxxxxxxxxx error downloading ssh://@ssh.dev.azure.com/v3/xxxxxxxxxxxx C:\azp\MinGit\cmd\git.exe exited with 128: Cloning into .terraform\modules\az-mod-rg'...

Host key verification failed.

fatal: Could not read from remote repository.

Community Center Not monitored
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.