原因分析: 操作系统升级时,sshd版本对一些加密算法不支持,需要手动添加。
方法一: 升级ssh客户端工具,我用finalshell最新版,就可以解决了。
方法二:手动添加,编辑 /etc/ssh/sshd_config
增加以下两行
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,umac-128@openssh.com,hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
然后,systemctl start sshd 完成后重启SSH即可解决问题。