jenkins扫描多分支流水线宝座FATAL: Failed to recompute children of test-multi hudson.plugins.git.GitException: Command "git ls-remote --symref -- ssh://[email protected]:9922/hj/test-multi.git" returned status code 128: stdout: stderr: Host key verification failed. fatal: Could not read from remote repository.
时间: 2024-02-16 20:05:31 浏览: 467
这个错误一般是由于没有设置正确的 SSH 密钥或者是没有添加正确的 Host Key 导致的。你可以尝试以下步骤来解决这个问题:
1. 确认是否正确配置了 SSH 密钥,可以通过在终端中执行 `ssh -T [email protected] -p 9922` 来测试是否可以连接到 Git 服务器。
2. 如果 SSH 密钥正确配置,那么可能是 Host Key 没有正确添加。你可以通过在终端中执行以下命令来添加 Host Key:
```
ssh-keyscan -p 9922 10.32.1.138 >> ~/.ssh/known_hosts
```
注意:这个命令会将 Host Key 添加到当前用户的 `~/.ssh/known_hosts` 文件中,如果你使用的是其他用户,需要将 `~/.ssh/known_hosts` 替换成相应用户的文件路径。
3. 如果以上步骤都无法解决问题,可能是 Git 服务器端的配置问题,需要联系 Git 服务器管理员进行排查。
阅读全文
相关推荐


















