看起来似乎有人在暴力扫Instabox的SSH登录密钥,或者是Zcode作怪。
我有5台Instabox的机器作为开发环境,其中3台安装了Zcode,通过Web远程使用;剩下的两台其中1台没有接入AI,常规部署使用,另一台接入了另一家AI。
今天下午6点左右,也就是国内十二点前后,是我最后一次连接到一台装有Zcode的Instabox机器,并部署了Cloudflare Tunnel,至此我的5台机器全部安装了Cloudflare Tunnel。
今天晚上20点左右,也就是国内凌晨2点左右,我发现我的一部分Instabox机器无法通过ssh连接,具体报错如下:
PS C:\Users\ABcdE> ssh -p 2222 [email protected]
The authenticity of host '[ssh.instabox.sh]:2222 ([34.215.27.177]:2222)' can't be established.
ED25519 key fingerprint is SHA256:DQxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxfxk.
This host key is known by the following other names/addresses:
C:\Users\ABcdE/.ssh/known_hosts:1: [api.instabox.sh]:2222
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[ssh.instabox.sh]:2222' (ED25519) to the list of known hosts.
[email protected]: Permission denied (publickey).
PS C:\Users\ABcdE> ssh -p 2222 [email protected]
[email protected]: Permission denied (publickey).
随后经过检查,三台装有Zcode的机器全部无法SSH连接。
不清楚是不是Zcode搞的鬼,在此做个记录吧,也有可能是别人获取了我的登录密钥,改了什么东西,但是查history没看到异常的命令记录。现在出问题的机器都已经删掉了。