OpenSSL升级导致ssh无法正常登陆

版权声明:如有问题可以加入QQ群:805652065,互相学习讨论 https://blog.csdn.net/zhangmingcai/article/details/82911833

     升级openssh需要升级openssl,但是升级之后,从低版本的ssh登录到高版本的ssh会出现各种各样的问题,下面介绍从Solaris系统登录到Linux7.1系统的ssh登录问题

由于Linux系统148的ssh升级导致无法从Solaris系统233上ssh登录该设备,报错如下所示:         
bash-3.00$ ssh [email protected]
no common kex alg: client 'diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1', server '[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1'


解决方法:

登录到107.131.221.148修改/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,[email protected]
然后重启ssh服务,启动命令为systemctl restart sshd 

猜你喜欢

转载自blog.csdn.net/zhangmingcai/article/details/82911833