阿里云服务器SSH连接提示ssh_exchange_identification: read: Connection reset by peer,如何解决?SSH登录提示kex_exchange_identification应该是内核拒绝了ssh连接,云服务器吧分享解决方法:
ssh_exchange_identification: read: Connection reset by peer
阿里云服务器SSH远程连接提示“ssh_exchange_identification: read: Connection reset by peer”,如何解决?云服务器吧建议使用阿里云服务器ECS控制台自带的远程连接工具,如下图:

阿里云服务器远程连接
使用自带远程连接工具,一般可以解决问题。
也可以执行命令:ssh-keygen -R IP地址
,清除known_hosts文件主机名密匙。
或执行命令:ssh -v root@IP地址
,查看连接详细信息,如下图:

ssh -v root@IP地址
然后执行命令:vi /etc/hosts.allow
,按字母i
,进入vi编辑模式,添加sshd: ALL
,允许所有IP地址链接主机。
如下图:

sshd: ALL
执行命令:systemctl restart sshd
,重启sshd服务即可。
最后执行SSH连接命令:ssh root@IP地址
,重新测试一下吧。
2022云服务器疯狂降价!
①阿里云:阿里云2核2G服务器5M带宽58元/年,更多配置价格便宜(有高配)
②腾讯云:腾讯云2核4G服务器8M带宽70元一年,更多配置及报价查看(有高配)
③华为云:华为云1核2G服务器39元一年,有香港节点更多1c2g/2c4g/2c8g/4c8g/8c16g...
④UCloud:UCloud快杰型云服务器55元一年起,多配置可选...
⑤代金券:2022阿里云代金券一键领取中
免费提供技术支持: 咨询客服
发表评论