【发布时间】: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