Connecting to 42.51.xxx.xxx:22…
Connection established.
To escape to local shell, press ‘Ctrl+Alt+]’.
Socket error Event: 32 Error: 10053.
Connection closing…Socket close.
Connection closed by foreign host.
Disconnected from remote host(42.51.xxx.xxx:22) at 20:00:30.
一、产生原因
阿里云服务器重置系统,导致使用第三方工具例如xshell无法ssh连接服务器
二、解决办法
使用阿里云的远程连接并输入一下以下命令修改系统权限
#chmod 400 /etc/ssh/*
解决问题