/var/log/auth.log 的细分,什么是 ssh2?

/var/log/auth.log 的细分,什么是 ssh2?

我使用该命令grep sshd.\*Failed /var/log/auth.log | less检查了我的 Ubuntu 18.04 LTS 机器上有多少暴力流量。我注意到有几个我不明白的部分。

Nov 21 12:55:53 *LOCALHOSTNAME* sshd[31151]: Failed password for invalid user john from *EXTERNAL IP* port 52162 ssh2
Nov 21 13:28:22 *LOCALHOSTNAME* sshd[31180]: Failed password for root from *EXTERNAL IP* port 47906 ssh2
Nov 21 13:37:03 *LOCALHOSTNAME* sshd[31186]: Failed password for root from *EXTERNAL IP* port 56522 ssh2
Nov 21 13:44:06 *LOCALHOSTNAME* sshd[31196]: Failed password for invalid user afar from *EXTERNAL IP* port 60040 ssh2

1)什么是“sshd[port?]”?

2)什么是“ssh2”?

背景:这台机器最近被入侵并用于僵尸网络。这次我尽量采取主动措施。

答案1

(蛮力)

这意味着选择尝试从外部 IP 进行,并且没有成功。

  + Install 
  Fail2ban 
  DenyHosts

.....

输入图片描述 herd[1]

lastb

1)什么是“sshd[port?]”?

The authlog log file contains the following information:

• date and time: Feb 27 03:02:36;
• server name: bullit;
• remote access server: sshd;
• process pid: 18408;
• username: (phusermv);
• IP address: 77.222.44.2;

2-什么是“ssh2”?

2 - SSH1 and SSH2 protocols / As already mentioned, sshd can work with the SSH1 and SSH2 protocols. However, the use of unsafe SSH1 is highly discouraged. You can make sshd work only with SSH2: Protocol

相关内容