jenkins添加GIT repository报错

添加了ssh互信,但一直提示如下错误。

Failed to connect to repository : Command "git ls-remote -h git@git.xxx.cn:xxxxx HEAD" returned status code 128:
stdout: 
stderr: Host key verification failed. 
fatal: The remote end hung up unexpectedly

# vi/etc/ssh/ssh_config
最后有两行是
        StrictHostKeyChecking no 
        UserKnownHostsFile /dev/null

注释掉。

原文地址:https://www.cnblogs.com/kisf/p/5094031.html