【问题标题】:How to use a ssh github repo with spring cloud-server on cloud foundry如何在 Cloud Foundry 上使用 ssh github repo 和 spring cloud-server
【发布时间】:2017-08-24 21:55:46
【问题描述】:

我正在尝试在由 github 存储库支持的 Cloud Foundry 上使用 Spring Cloud Services Config Server。我需要使用 ssh 访问,因为它是一个私人 git 存储库,但我不断收到错误

UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48

创建我正在使用的服务:

cf create-service -c '{"git": { "uri": "ssh://git@github.com/user/myrepo.git", "label": "master", "privateKey":"-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----\n", "hostKey":"AAAA...FFAaQ==", "hostKeyAlgorithm": "ssh-rsa" } }' p-config-server standard config-server

我直接从我的 known_hosts 文件中获取hostKey

我已尝试在 PCFDev 上对其进行测试,但我收到了更通用的错误消息 Unable to reach host.,尽管我可以 ssh 到应用程序容器并自己克隆存储库。

我一直在遵循这些指示http://docs.pivotal.io/spring-cloud-services/1-4/common/config-server/configuring-with-git.html#ssh-repository-access

我做错了什么?

【问题讨论】:

  • 您应该联系您的 PCF 支持联系人。
  • 这看起来是正确的,hostKey 值的前缀/后缀似乎与我对 github.com 的相似。我一直在使用 Spring Cloud Services Config Server 在本地运行它并成功创建了一个实例。这是使用 Spring Cloud Services 1.4.3 版。请联系 Pivotal 支持,以便我们向您收集有关环境的更多信息。谢谢。
  • 你知道为什么吗?我也面临同样的问题。

标签: spring-cloud cloud-foundry pivotal-web-services configserver


【解决方案1】:

Spring Cloud Services 团队在为 Config Server 使用 Git SSH 配置时发现了 SCS 至少 1.11.7+ 和可能 1.11.x+ 的错误。他们正在开发补丁。

因此,不幸的是,答案是降级或等待补丁。

【讨论】:

  • 你怎么知道的?
猜你喜欢
  • 2022-08-19
  • 1970-01-01
  • 2016-10-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-06-10
  • 2016-07-26
  • 1970-01-01
相关资源
最近更新 更多