首页 > 其他 > 详细

公司某些服务器没法ssh阿里云服务器的解决方法

时间:2017-11-27 17:51:17      阅读:208      评论:0      收藏:0      [点我收藏+]
一、故障现象

1)在公司网络某些主机上的ssh阿里云主机报错: ---------------------------------------------------------------------------- OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug1: Connecting to 106.14.204.65 [106.14.204.65] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/id_rsa type 1 debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: identity file /root/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6.1 ssh_exchange_identification: read: Connection reset by peer ---------------------------------------------------------------------------- 2)阿里云安全组中策略已经对公司外网的IP地址放行。 3)阿里云服务器上/etc/hosts.allow里面也参考https://help.aliyun.com/knowledge_detail/41470.html # cat /etc/hosts.allow|tail -1 sshd: ALL # systemctl restart sshd


二、解决方法

云盾控制台->DDos防护->基础防护->点击具体的实例->扫描拦截->白名单设置->添加您的本地IP,再尝试是否能远程

技术分享图片

技术分享图片

技术分享图片

添加完白名单,然后再次测试,告警消失。


公司某些服务器没法ssh阿里云服务器的解决方法

原文:http://blog.51cto.com/molewan/2044795

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!