Host key verification failed.
在github上配置了公鑰,ssh git@github.com也成功了,但是出現(xiàn)如下報錯:
ERROR:?Error?cloning?remote?repo?'origin' hudson.plugins.git.GitException:?Command?"git?fetch?--tags?--progress?git@github.com:NAMO88/order.git?+refs/heads/*:refs/remotes/origin/*"?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. at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042) at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761) at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72) at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442) at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:655) at?hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152) at?hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) at?hudson.scm.SCM.checkout(SCM.java:504) at?hudson.model.AbstractProject.checkout(AbstractProject.java:1206) at?hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at?jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at?hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at?hudson.model.Run.execute(Run.java:1815) at?hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at?hudson.model.ResourceController.execute(ResourceController.java:97) at?hudson.model.Executor.run(Executor.java:429) ERROR:?Error?cloning?remote?repo?'origin' Finished:?FAILURE
2020-02-09
HTTPS:不管是誰,拿到url隨便clone,但是在push的時候需要驗證用戶名和密碼。
SSH:clone的項目你必須是擁有者或者管理員,而且需要在clone前添加SSH Key。SSH 在push的時候,是不需要輸入用戶名的,如果配置SSH key的時候設(shè)置了密碼,則需要輸入密碼的,否則直接是不需要輸入密碼的。
按照你的錯誤報告,
請確認相關(guān)信息。本人已驗證該問題,成功git clone
2019-09-12
解決了,用http的github地址就好了