xshell连不上阿里云服务器Connection closed by foreign host.解决办法
经常会遇到xshell连不上阿里云服务器
报错信息:
Connection established.To escape to local shell, press 'Ctrl+Alt+]'.
Connection closed by foreign host.
尝试过多种办法都没有办法解决,今天终于找到了解决办法。
场景,同个ip用xshell连接了多台服务器:
突然xshell全部断线并且报错Connection closed by foreign host.
试了各种办法,最后发现是因为阿里云认为同个ip连了多个服务器实例, 有
入侵嫌疑,因此暂时拒绝了该ip进行远程连接。
解决办法:
把你的ip加到安全组配置中的白名单即可