redhat 7.4 升级openssh 到8.4之后报错
如下报错
(GBA) open ssh to host failed 192.168.2xx.xx1:22. Because: ssh connect failed : kex error : no match for method kex algos: server [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha
在服务端做如下配置:
vim /etc/ssh/sshd_config
最后一行添加
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1
service sshd restart