2017-04-27 50 views
0

我连接到我的服务器正常。但后来,当我退出,我不能马上回连在我收到此错误:退出服务器后无法重新连接。接收错误“ssh_exchange_identification:由远程主机关闭的连接”

ssh_exchange_identification: Connection closed by remote host 

只有经过大约一个小时+我能够重新连接。
任何想法,为什么发生这种情况,我该如何解决它?这不会发生在任何其他我的服务器我是从出口,然后重新连接到..

这里是我的终端窗口的片段,显示我的连接,然后退出的错误消息后..

[email protected]:~$ ssh [email protected] 
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 
[[email protected] ~]# exit 
logout 
Connection to 104.---.1-4.91 closed. 
[email protected]:~$ ssh [email protected] 
ssh_exchange_identification: Connection closed by remote host 
[email protected]:~$ ssh [email protected] 
ssh_exchange_identification: Connection closed by remote host 
[email protected]:~$ 

回答

0

检查服务器日志。它会告诉你拒绝的原因(如果没有,请设置更高的日志级别)。

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

+0

感谢您的回复。对不起 - 我对Linux和ssh有点新鲜。如果我现在无法登录,如何检查我的服务器日志? – Ben

相关问题