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知识库