spring:
cloud:
config:
server:
git:
uri: git@github.myserver.example.com:my-team/config-properties-demo.git
user: someone
private_key_file: /path/to/private_key
strictHostKeyChecking: false
spring cloud config server SSH配置 git private key方式
原文:https://www.cnblogs.com/xielei/p/10452855.html