jenkins添加GIT repository报错

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

Failed to connect to repository : Command "git ls-remote -h [email protected]: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

注释掉。

 

你可能感兴趣的:(jenkins添加GIT repository报错)