Spring cloud 配置中心 https://github.com/xxxx: cannot open git-upload-pack

  1. 问题
    检查过配置都正确
    启动后日志报:org.eclipse.jgit.api.errors.TransportException: https://github.com/xxxxx: cannot open git-upload-pack
    在这里插入图片描述
    尝试本地git拉取,git报:OpenSSL SSL_connect: Connection was reset in connection to github.com:443
    因此git配置

    git config --global http.sslVerify false

解决git问题,然而cannot open git-upload-pack问题依旧

  1. 解决
    改用ssh方式
    开始用 ssh-keygen -t rsa -C “邮箱” 生成ssh,然而重启配置中心后会报Auth fail
    因而改用ssh-keygen -m PEM -t rsa -b 4096 -C "邮箱"生成ssh,重启配置中心后问题解决
    在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Lossdate/article/details/114230502
今日推荐