Advertisement

排查CentOS8 SSH Secure Shell报错问题 确保算法协商成功

阅读量:

今日部署的服务器系统已升级至CentOS8版本,但所使用的SSH Secure Shell客户端版本仍停留在多年前的3.2.9,因此在连接服务器时出现了文中所述的错误提示。这一问题令人困扰,耗费了我大量时间。

网络上关于解决此问题的文章数量众多,其提供的解决方案普遍如下:

1. 进入/etc/ssh目录,编辑其中的sshd_config文件
sudo vim /etc/ssh/sshd_config

2. 在文件末尾追加以下内容
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,e

全部评论 (0)

还没有任何评论哟~