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

注释掉。

 

posted @ 2016-01-02 00:30  Jenkin.K  阅读(2647)  评论(0编辑  收藏  举报