ssh远程centos7出现server responded algorithm negotiation failed”解决方法

2017-05-29 18:00 评论 0 条

Putty可以远程,ssh工具不能远程到chentos 7/ubuntu 的解决方法

?

错误描述:

server responded "algorithm negotiation failed"

?

错误截图:

?

错误原因:服务器响应通过失败

?

解决方法:

1.修改ssh的配置文件 #vi /etc/ssh/sshd_config

?

2.如果sshd_config配置文件末尾已经有类似以下加密代码,需要删除后添加以下代码,

如果没有直接在sshd_config配置文件末尾中添加:

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,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org

?

3.修改好sshd_config配置文件后重启ssh服务, 即可正常连接:

Centos 7 重启ssh服务命令:systemctl restart sshd.service

Ubuntu 重启ssh服务命令:/etc/init.d/ssh restart

?

?

参考链接:http://www.linuxdiyf.com/linux/24314.html

版权声明:本文著作权归原作者所有,欢迎分享,谢谢支持!
转载请保留注明:ssh远程centos7出现server responded algorithm negotiation failed”解决方法 | DPIP知识库
分类:Centos, Ubuntu 标签:

发表评论

您必须 登录 才能发表留言!