相关疑难解决方法(0)

克隆git repo会导致错误 - 主机密钥验证失败.致命:远程端意外挂断

我使用SSH将git repo克隆到我的Web服务器,但每次出现此错误

$git clone git@github.com:aleccunningham/marjoram.git
Cloning into marjoram...
Host key verification failed.
Run Code Online (Sandbox Code Playgroud)

我已经尝试了几乎所有在谷歌搜索中出现的内容,而且我对为什么这不起作用感到茫然.有任何想法吗?

另外,我没有使用詹金斯这样的东西.

git ssh-keys

46
推荐指数
2
解决办法
8万
查看次数

设置Jenkins时权限被拒绝(publickey)

我在Win 2008服务器计算机上设置Jenkins,并且在配置Jenkins以连接到GitHub时遇到一些麻烦.我收到以下错误:

Command "git.exe fetch -t git@github.com:USER/REPO.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: Permission denied (publickey).
fatal: The remote end hung up unexpectedly

ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:950)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:908)
    at hudson.FilePath.act(FilePath.java:758)
    at hudson.FilePath.act(FilePath.java:740)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:908)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1184)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:537)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:425)
    at hudson.model.Run.run(Run.java:1376)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:175)
Run Code Online (Sandbox Code Playgroud)

我检查过的事情

  • Jenkins服务在我的用户名下运行.
  • 我更改了SSH密钥,因此它不再有密码.
  • 我通过使用msysgit执行与Jenkins相同的命令验证了我的SSH密钥是否有效.
  • 验证我的所有路径都是正确的.

Jenkins配置设置

  • 詹金斯1.418
  • GitHub插件0.5
  • Git插件1.1.9

msysgit工作,但CMD提示不会 当我导航到有效的仓库并从DOS提示符执行命令时,它也会失败. …

windows git github jenkins

12
推荐指数
2
解决办法
3万
查看次数

Jenkins和Github没有使用SSH密钥

我已经设置Jenkins从Github上的私有存储库中获取特定的工作.看来Jenkins没有使用SSH密钥,尽管事实上我生成了私钥/公钥并将其作为部署密钥添加到github.

当我从Jenkins用户git克隆时,我被提示输入用户名和密码.为什么不使用我的〜/ .ssh/id_rsa.pub键?

谢谢

github jenkins

5
推荐指数
1
解决办法
7358
查看次数

标签 统计

git ×2

github ×2

jenkins ×2

ssh-keys ×1

windows ×1