退出服务器后无法重新连接。接收错误"ssh_exchange_identification: Connection closed by remote host"



i连接到我的服务器。但是当我退出时,我无法立即连接。我收到此错误:

ssh_exchange_identification: Connection closed by remote host

只有大约一个小时 我才能重新连接。
知道为什么会发生这种情况以及如何解决?这不会发生在我退出的其他服务器上,然后重新连接到..

这是我的终端窗口的片段,显示了我的连接,然后在退出错误消息之后。

devenv@DevEnv0:~$ ssh root@104.---.1-4.91
Last failed login: Thu Apr 27 05:55:02 UTC 2017 from 180.---.1--.83 on ssh:notty
There were 134 failed login attempts since the last successful login.
Last login: Wed Apr 26 14:37:34 2017 from ppp-46--------156.wildpark.net
[root@secure ~]# exit
logout
Connection to 104.---.1-4.91 closed.
devenv@DevEnv0:~$ ssh root@104.---.1-4.91
ssh_exchange_identification: Connection closed by remote host
devenv@DevEnv0:~$ ssh root@104.---.1-4.91
ssh_exchange_identification: Connection closed by remote host
devenv@DevEnv0:~$ 

检查服务器日志。它将告诉您拒绝的原因(如果不是,请设置更高的日志级别(。

这很可能是由错误配置的fail2ban或类似服务引起的,该服务在tcp_wrappers中发布了您的IP地址的临时禁令。但是没有更多信息,这只是90%的猜测。

最新更新