SSH连接阿里云错误:Connection reset by peer解决

SSH连接阿里云的ECS服务器centos 7报错:

OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to aliyun [119.23.40.161] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/qinzheng/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/qinzheng/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/qinzheng/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/qinzheng/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/qinzheng/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/qinzheng/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/qinzheng/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/qinzheng/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
ssh_exchange_identification: read: Connection reset by peer

解决办法:http://www.2cto.com/net/201705/641859.html

原因:找了很多,其实是云盾拦截了,需要自行添加白名单,好坑,相信很多人都这样,记录一下

展开阅读全文

没有更多推荐了,返回首页