我使用密钥(不是密码)通过 ssh 进入服务器,但我的 IP 地址经常被服务器禁止。
在查看服务器 auth.log 后,我发现有人(或某些软件)每 10-20 分钟就尝试使用错误的密码进行 ssh。
Jun 15 21:23:26 www sshd[31046]: Failed password for git from 218.81.128.80 port 37012 ssh2
Jun 15 21:23:26 www sshd[31046]: error: maximum authentication attempts exceeded for git from 218.81.128.80 port 37012 ssh2 [preauth]
Jun 15 21:23:26 www sshd[31046]: Disconnecting authenticating user git 218.81.128.80 port 37012: Too many authentication failures [preauth]
Jun 15 21:33:26 www sshd[31931]: Failed password for git from 218.81.128.80 port 37146 ssh2
Jun 15 21:33:26 www sshd[31931]: Failed …Run Code Online (Sandbox Code Playgroud)