【发布时间】: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 到应用程序容器并自己克隆存储库。
我做错了什么?
【问题讨论】:
-
您应该联系您的 PCF 支持联系人。
-
这看起来是正确的,
hostKey值的前缀/后缀似乎与我对 github.com 的相似。我一直在使用 Spring Cloud Services Config Server 在本地运行它并成功创建了一个实例。这是使用 Spring Cloud Services 1.4.3 版。请联系 Pivotal 支持,以便我们向您收集有关环境的更多信息。谢谢。 -
你知道为什么吗?我也面临同样的问题。
标签: spring-cloud cloud-foundry pivotal-web-services configserver