问题描述

在用ssh登陆我们服务器的时候,或者使用Jenkins需要登陆服务器的时候,有的时候你会出现这样的问题:error:Algorithm negotiation fail

问题原因

ssh升级之后,为了安全,默认不再采用原来一些加密算法。既然没有了原来的一些加密算法,那么久手工添加进去

解决方法:

1.想办法登陆到服务器(putty,Telnet):

vim /etc/ssh/sshd_config

2.在后面添加:

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,arcfour

KexAlgorithms diffie-hellman-group1-sha1

3.重启sshd服务器

service sshd restart

相关文章:

  • 2021-08-04
  • 2021-05-27
  • 2022-12-23
  • 2021-05-26
  • 2021-10-14
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2021-09-02
  • 2021-09-03
  • 2021-06-05
  • 2021-07-17
相关资源
相似解决方案