全球主机交流论坛

标题: 安装5分钟的小鸡就有两个成功登陆的陌生ip?求大佬解惑 [打印本页]

作者: corporation    时间: 2024-5-16 00:38
标题: 安装5分钟的小鸡就有两个成功登陆的陌生ip?求大佬解惑
本帖最后由 corporation 于 2024-5-16 00:42 编辑

journalctl _COMM=sshd | grep 'Accepted' | awk '{print $0}'

Aug 16 02:14:28 static sshd[473]: Accepted password for jevin from 178.63.62.213 port 57622 ssh2
Aug 16 02:15:25 static sshd[509]: Accepted password for root from 178.63.62.213 port 57624 ssh2
Aug 16 02:26:41 static sshd[418]: Accepted password for root from 178.63.62.213 port 57630 ssh2
Aug 16 02:28:07 static sshd[418]: Accepted password for root from 178.63.62.213 port 57632 ssh2
Aug 16 02:30:55 static sshd[401]: Accepted password for root from 178.63.62.213 port 57638 ssh2
Aug 16 02:32:31 static sshd[418]: Accepted password for root from 178.63.62.213 port 57646 ssh2
Aug 16 02:35:56 static sshd[418]: Accepted password for root from 178.63.62.213 port 57648 ssh2
Aug 16 02:42:30 static sshd[419]: Accepted password for root from 178.63.62.213 port 57660 ssh2
Aug 16 02:52:07 static sshd[420]: Accepted password for root from 178.63.62.213 port 57670 ssh2
Aug 16 02:52:43 static sshd[439]: Accepted password for root from 106.193.211.155 port 7318 ssh2
Aug 16 03:10:32 static sshd[424]: Accepted password for root from 106.193.211.155 port 7664 ssh2

mjj大佬送的virtono小鸡,重新安装debian12 5分钟不到就发现几个陌生ip的成功登陆,一个是印度的一个是德国hz的,我用的20多位高强度密码。换成debian 11依然一样,登陆ip换了,并且改了我的hostname。。。有大佬知道这是怎么回事吗?


date
Wed 15 May 2024 12:21:54

为什么这个登陆信息显示aug八月份?
作者: heihai    时间: 2024-5-16 00:41
是不是之前已经创建了异常用户,删掉,仅允许秘钥登录吧



一二三转身起飞~

作者: corporation    时间: 2024-5-16 00:44
heihai 发表于 2024-5-16 00:41
是不是之前已经创建了异常用户,删掉,仅允许秘钥登录吧

是安装新系统不到几分钟的小鸡,用的是virtono官方的reinstall,选debian12和11,都有类似的问题
作者: HOH    时间: 2024-5-16 00:44
你要是眼睛或者大脑不好使的话就及时就医,不要来LOC发这种睿智贴浪费别人时间
作者: corporation    时间: 2024-5-16 00:48
本帖最后由 corporation 于 2024-5-16 00:50 编辑
HOH 发表于 2024-5-16 00:44
你要是眼睛或者大脑不好使的话就及时就医,不要来LOC发这种睿智贴浪费别人时间 ...


从来没想说脏话的,发帖是我的自由,不喜欢关掉就行,不要把我惹毛了    从来不想掺合论坛里的恩怨,现在觉得早该ban你了 https://hostloc.gdisk.cf/thread-1307219-1-1.html
作者: 埃隆马斯克    时间: 2024-5-16 00:50
建议关机保平安,最好一直关机
作者: bs221    时间: 2024-5-16 00:53
sshd信息也看不出啥,看下last的命令
作者: corporation    时间: 2024-5-16 00:59
bs221 发表于 2024-5-16 00:53
sshd信息也看不出啥,看下last的命令

如下,搞不懂这个aug八月份是怎么来的。。

reboot   system boot  5.10.0-8-amd64   Wed May 15 09:29   still running
root     pts/0        106.193.211.155  Mon Aug 16 03:10 - 03:13  (00:03)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 03:10 - 03:13  (00:03)
root     pts/0        106.193.211.155  Mon Aug 16 02:52 - 02:59  (00:06)
root     pts/0        178.63.62.213    Mon Aug 16 02:52 - 02:52  (00:00)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 02:52 - 02:59  (00:07)
root     tty1                          Mon Aug 16 02:48 - down   (00:03)
root     pts/0        178.63.62.213    Mon Aug 16 02:42 - down   (00:09)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 02:42 - 02:51  (00:09)
root     tty1                          Mon Aug 16 02:41 - crash  (00:01)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 02:41 - 02:51  (00:10)
root     pts/0        178.63.62.213    Mon Aug 16 02:35 - crash  (00:05)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 02:35 - 02:51  (00:16)
root     pts/0        178.63.62.213    Mon Aug 16 02:32 - down   (00:03)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 02:32 - 02:35  (00:03)
root     pts/0        178.63.62.213    Mon Aug 16 02:30 - down   (00:01)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 02:30 - 02:32  (00:01)
root     pts/0        178.63.62.213    Mon Aug 16 02:28 - down   (00:02)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 02:27 - 02:30  (00:02)
root     pts/0        178.63.62.213    Mon Aug 16 02:26 - down   (00:00)
reboot   system boot  5.10.0-8-amd64   Mon Aug 16 02:26 - 02:27  (00:01)
root     pts/0        178.63.62.213    Mon Aug 16 02:15 - down   (00:10)
jevin    pts/0        178.63.62.213    Mon Aug 16 02:14 - 02:15  (00:00)
作者: Nachoneko    时间: 2024-5-16 01:00
不是iso安装的吧?商家制作镜像时候的登录记录?
作者: corporation    时间: 2024-5-16 01:10
本帖最后由 corporation 于 2024-5-16 01:14 编辑
Nachoneko 发表于 2024-5-16 01:00
不是iso安装的吧?商家制作镜像时候的登录记录?


用的是virtono官方安装形式  Server Information,install,reinstall OS,debian 12 这样下来

感觉是商家镜像的问题?
作者: hins    时间: 2024-5-16 09:59
是不是系统的这个镜像本来就有人登过 然后记录没删
作者: zq2038    时间: 2024-5-16 14:03
你用了他的镜像所以包含以前他登陆过的日志记录
作者: micboy    时间: 2024-5-16 14:33
这个是官方镜像遗留的,应该没问题。换成密钥+fail2ban更安全
作者: 柳夜熙    时间: 2024-5-16 15:04
我装完第一件事就是开启google f2a登录



作者: corporation    时间: 2024-5-16 18:03
zq2038 发表于 2024-5-16 14:03
你用了他的镜像所以包含以前他登陆过的日志记录

这个还是第一次见。。。因为ssh第一次登陆就看到一个陌生的ip last login from,我还以为是密码强度不够安装就被攻破了
作者: corporation    时间: 2024-5-16 18:04
micboy 发表于 2024-5-16 14:33
这个是官方镜像遗留的,应该没问题。换成密钥+fail2ban更安全

现在看来就是。。。这个还是第一次见

ssh第一次登陆就看到一个陌生ip last login from,我还以为是密码强度不够安装就被攻破了,感觉小鸡厂商也太不细心了吧

作者: 木肀几    时间: 2024-5-16 18:08
开了扶墙?


作者: 宋喆    时间: 2024-5-16 18:47
日志也打包了?还有这种事
作者: micboy    时间: 2024-5-16 19:40
corporation 发表于 2024-5-16 18:04
现在看来就是。。。这个还是第一次见

ssh第一次登陆就看到一个陌生ip last login from,我还以为是密码 ...

dmit/咸鱼/斯巴达我都遇见过,我还以为你要说我在小鸡里种马了呢




欢迎光临 全球主机交流论坛 (https://hostloc.gdisk.cf/) Powered by Discuz! X3.4