【发布时间】:2015-04-20 14:40:55
【问题描述】:
我已经在 CentOS 中安装了 Jenkins,还安装了 git 插件以便使用 Bitbucket。在源代码管理中添加存储库 URL 时,HTTPS 效果很好,但是当我添加 SSH url 时会弹出以下错误 -
Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h git@bitbucket.org:ash_dy/test_1.git HEAD" returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已经用谷歌搜索过,但没有找到任何问题的答案,我想使用 ssh 而不是 Https,所以请帮忙。
【问题讨论】:
-
git 用户是否通过密钥或您输入密码进行无密码访问?