no matching cipher found问题一次解决经历

个人博客地址:no matching cipher found问题一次解决经历 | 一张假钞的真实世界

本次问题解决纯属蒙对了,原理不清楚。

当我从一台CentOS 7.3的服务器通过ssh登录另外一台CentOS 6.8的服务器时出现以下错误信息:

[root@192-168-72-75 .ssh]# ssh -p65522 [email protected]
no matching cipher found: client arcfour server [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]

解决方法是在“192-168-72-75”服务器上修改/etc/ssh/ssh_config配置文件,添加以下内容:

Host *
	 GSSAPIAuthentication yes
     Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
     MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160

以上内容在原配置文件中本来就有,可能只是注释掉了,修改的时候仔细核对下。

你可能感兴趣的:(linux)