我使用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)
我已经尝试了几乎所有在谷歌搜索中出现的内容,而且我对为什么这不起作用感到茫然.有任何想法吗?
另外,我没有使用詹金斯这样的东西.
我在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配置设置
msysgit工作,但CMD提示不会 当我导航到有效的仓库并从DOS提示符执行命令时,它也会失败. …
我已经设置Jenkins从Github上的私有存储库中获取特定的工作.看来Jenkins没有使用SSH密钥,尽管事实上我生成了私钥/公钥并将其作为部署密钥添加到github.
当我从Jenkins用户git克隆时,我被提示输入用户名和密码.为什么不使用我的〜/ .ssh/id_rsa.pub键?
谢谢