创建网站时出现身份验证失败问题

时间:2019-01-15 20:41:30

标签: crafter-cms

在本地本地创建网站时出现以下错误

  

org.craftercms.deployer.api.exceptions.DeployerException:无法克隆Git远程存储库ssh://crafter@sampleserver.com:63022 / opt / crafter / data / repos / sites / sample-site /发布到/用户/ parasjain /本地交付/数据/回购/站点/样本站点;嵌套的异常是org.eclipse.jgit.api.errors.TransportException:ssh://crafter@sampleserver.com:63022 / opt / crafter / data / repos / sites / sample-site / published:验证失败       在org.craftercms.deployer.impl.processors.GitPullProcessor.cloneRemoteRepository(GitPullProcessor.java:150)       在org.craftercms.deployer.impl.processors.GitPullProcessor.doClone(GitPullProcessor.java:121)       在org.craftercms.deployer.impl.processors.GitPullProcessor.doExecute(GitPullProcessor.java:72)       在org.craftercms.deployer.impl.processors.AbstractMainDeploymentProcessor.execute(AbstractMainDeploymentProcessor.java:70)       在org.craftercms.deployer.impl.DeploymentPipelineImpl.executeProcessors(DeploymentPipelineImpl.java:76)       在org.craftercms.deployer.impl.DeploymentPipelineImpl.execute(DeploymentPipelineImpl.java:68)       在org.craftercms.deployer.impl.TargetImpl $ DeploymentTask.run(TargetImpl.java:242)       在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)       在java.util.concurrent.FutureTask.run(FutureTask.java:266)       在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)       在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)       在java.lang.Thread.run(Thread.java:745)

这是我正在使用的命令

  

./ init-site.sh -k /Users/parasjain/myprivatekey.key示例站点   ssh://crafter@sampleserver.com:63022 / opt / crafter / data / repos / sites / sample-site / published

但是使用相同的密钥和用户名git clone可以正常工作

ssh-add /Users/parasjain/myprivatekey.key

git clone ssh://crafter@sampleserver.com:63022/opt/crafter/data/repos/sites/sample-site/published

1 个答案:

答案 0 :(得分:3)

使用OpenSSH密钥时最常发生这种错误。当前,CrafterCMS不支持OpenSSH密钥。请改用RSA密钥。

您可以找到有关故障排除的文档here