我刚刚设置了我的树莓派。检查 Auth.log,我注意到来自外部 IP 地址的一些失败尝试。然而,有一次(最后的)尝试让我感到困惑。
这条线(还要注意时间倒退了)
Feb 23 21:29:52 raspberrypi sshd[17102]: Connection from 210.107.198.201 port 43566 on 192.168.0.102 port 22
Feb 23 21:17:13 raspberrypi systemd-logind[341]: New seat seat0.
我不是安全专家,但我知道 systemd-logind 是一个管理登录的守护进程,但是 New seat seat0` 是否表示成功?
文档并没有真正为我澄清。我认为这与此有关
AttachDevice() 可用于将特定设备分配给特定座位。该设备由其 /sys 路径标识,并且必须符合分配席位的条件。接受三个参数:座位 ID、sysfs 路径和用于控制 PolicyKit 交互性的布尔值(见上文)。设备分配永久存储到磁盘。要创建新座位,只需指定以前未使用的座位 ID。有关席位分配逻辑的更多信息,请参阅 Multi-Seat for Linux。
如果相关的话,还有更多的行
Feb 23 21:29:50 raspberrypi sshd[17099]: Connection from 210.107.198.201 port 43394 on 192.168.0.102 port 22
Feb 23 21:29:51 raspberrypi sshd[17099]: Invalid user admin from 210.107.198.201
Feb 23 21:29:51 raspberrypi sshd[17099]: input_userauth_request: invalid user admin [preauth]
Feb 23 21:29:52 raspberrypi sshd[17099]: Connection closed by 210.107.198.201 [preauth]
Feb 23 21:29:52 raspberrypi sshd[17102]: Set /proc/self/oom_score_adj to 0
Feb 23 21:29:52 raspberrypi sshd[17102]: Connection from 210.107.198.201 port 43566 on 192.168.0.102 port 22
Feb 23 21:17:13 raspberrypi systemd-logind[341]: New seat seat0.
Feb 23 21:17:14 raspberrypi sshd[405]: Set /proc/self/oom_score_adj from 0 to -1000
Feb 23 21:17:14 raspberrypi sshd[405]: Server listening on 0.0.0.0 port 22.
Feb 23 21:17:14 raspberrypi sshd[405]: Server listening on :: port 22.