这个问题主要是客户端与服务端安装的git版本不兼容,解决如下:

1.只对当前bash起作用,一般人应该不会设吧

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@127.0.0.1

2.对所以bash起作用

vi ~/.ssh/config加入以下内容

Host somehost.example.org(你的gerrit服务器,域名或IP)

KexAlgorithms +diffie-hellman-group1-sha1

相关文章:

  • 2022-12-23
  • 2021-08-30
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2021-06-05
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2021-06-05
  • 2022-12-23
  • 2022-01-02
  • 2021-11-08
相关资源
相似解决方案