全球主机论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 272|回复: 0

ssh远程centos7出现server responded algorithm negotiation failed”

[复制链接]
发表于 2017-11-15 15:06:44 | 显示全部楼层 |阅读模式
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,[email protected],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,[email protected]

3.修改好sshd_config配置文件后重启ssh服务, 即可正常连接:
Centos 7 重启ssh服务命令:systemctl restart sshd.service
Ubuntu 重启ssh服务命令:/etc/init.d/ssh restart
美国服务器,香港服务器,站群服务器,cn2服务器,韩国服务器。
美国服务器,香港服务器,站群服务器,cn2服务器,韩国服务器。
联系QQ97124062

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|小黑屋|全球服务器论坛

GMT+8, 2024-10-10 08:27 , Processed in 1.450802 second(s), 18 queries , File On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表