我有一个 git 存储库,它使用 SSH 密钥对用户进行身份验证,我想将该存储库用作 GoCD 材料。GoCD 给了我这个错误:
Error performing command: --- Command ---
git ls-remote ssh://git@server/repo.git refs/heads/master
--- Environment ---
{GIT_ALLOW_PROTOCOL=http:https:ssh:git:file:rsync}
--- INPUT ----
--OUTPUT ---
--- ERROR ---
STDERR: Host key verification failed.
STDERR: fatal: Could not read from remote repository.
STDERR:
STDERR: Please make sure you have the correct access rights
STDERR: and the repository exists.
---
有什么办法可以将 SSH 密钥添加到 GoCD?