【问题标题】:Spring Cloud Config Server-GITLAB SSH ConnectionSpring Cloud Config Server-GITLAB SSH连接
【发布时间】:2019-07-01 22:24:28
【问题描述】:

在查看了 SO 线程和博客的数量以及 Spring 云配置文档之后,我无法找到如何连接到远程 GITLAB 存储库,因为我在启动 spring-cloud-config 服务器时遇到了错误。

原因:com.jcraft.jsch.JSchException: Auth failed

spring:
  cloud:
    config:
      server:
        git:
          uri: git@private_gitlab_repo:project
          search-paths: '{application}'
          skip-ssl-validation: true
          strict-host-key-checking: false
          known-hosts-file: C:\Users\myname\.ssh\known_hosts
  • spring-boot :2.1.2.RELEASE

  • spring-cloud.version: Greenwich.RELEASE

  • 操作系统:Windows-7

使用命令提示符,我可以与 GITLAB 存储库进行交互。我确实生成了 SSH 密钥并在 GITLAB 设置中添加了公钥。另外,我没有使用用户名和密码连接到 GITLAB 的选项。

关于我缺少配置或步骤的任何指针?

【问题讨论】:

    标签: spring-boot gitlab ssh-keys spring-cloud-config


    【解决方案1】:

    发现这是我的 IntelliJ idea IDE 问题,当我尝试在命令提示符下运行同一个项目时,它没有任何问题。

    【讨论】:

      猜你喜欢
      • 2015-11-28
      • 2022-01-14
      • 1970-01-01
      • 2015-10-04
      • 1970-01-01
      • 2019-02-21
      • 2023-01-20
      • 2016-06-04
      • 2020-01-17
      相关资源
      最近更新 更多