Ubuntu 14.04.5 LTS:monit警报--连接失败sshd

Ubuntu 14.04.5 LTS:monit警报--连接失败sshd,ubuntu,amazon-ec2,monit,Ubuntu,Amazon Ec2,Monit,一夜之间,我收到了数十封来自Monit的电子邮件,看起来像这样: Connection failed Service sshd Date: Thu, 24 Oct 2019 11:39:49 Action: restart Host: my_app_production Description: failed protocol test [SSH] at INET[localhost:22]

一夜之间,我收到了数十封来自
Monit
的电子邮件,看起来像这样:

Connection failed Service sshd

        Date:        Thu, 24 Oct 2019 11:39:49
        Action:      restart
        Host:        my_app_production
        Description: failed protocol test [SSH] at INET[localhost:22] via TCP -- SSH: error receiving identification string -- Success


Your faithful employee,
Monit

我检查了服务器-它已启动并正在运行。我检查了磁盘空间,有足够的空间

我对DevOps不太熟悉,也不确定我应该在哪里挖掘什么,以及如何解决这个问题。谷歌搜索也没有真正起到帮助作用

有什么建议吗


谢谢

这应该是亚马逊暂时的问题。我假设您无法查看或更改AWS上的sshd配置(或日志),因此我建议您软化monit规则

只需使用以下功能:

Connection succeeded Service sshd

        Date:        Thu, 24 Oct 2019 11:41:50
        Action:      alert
        Host:        my_app_production
        Description: connection succeeded to INET[localhost:22] via TCP

Your faithful employee,
Monit
if failed port 22
  # add this:
  for 2 times within 3 cycles
then alert