Cha*_*Bao 21 ssh git login pycharm
我使用密钥(不是密码)通过 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 password for git from 218.81.128.80 port 37146 ssh2
Jun 15 21:33:26 www sshd[31931]: error: maximum authentication attempts exceeded for git from 218.81.128.80 port 37146 ssh2 [preauth]
Jun 15 21:33:26 www sshd[31931]: Disconnecting authenticating user git 218.81.128.80 port 37146: Too many authentication failures [preauth]
Jun 15 21:53:26 www sshd[870]: Failed password for git from 101.81.237.208 port 37384 ssh2
Jun 15 21:53:26 www sshd[870]: Failed password for git from 101.81.237.208 port 37384 ssh2
Jun 15 21:53:26 www sshd[870]: error: maximum authentication attempts exceeded for git from 101.81.237.208 port 37384 ssh2 [preauth]
Jun 15 21:53:26 www sshd[870]: Disconnecting authenticating user git 101.81.237.208 port 37384: Too many authentication failures [preauth]
Run Code Online (Sandbox Code Playgroud)
我正在使用 pycharm/phpstorm 等,并在我的服务器上创建了一个 Git 服务器。
我检查了这两个软件包的设置,但不知道发生了什么。我什至更换了我的电脑,但没有任何区别。
Cha*_*Bao 18
其实我找到了答案。
这是一个名为Git Integration的 pycharm 插件。
我禁用了这个插件后,问题就解决了。
Jou*_*eek 14
sudo lsof | grep ssh | grep git| grep IPv4 在执行此操作的客户端计算机上应该告诉您当时在做什么。
lsof 会告诉你什么在使用一个文件(一切都是 *nix 中的文件)。我们正在过滤 ssh 和您的用户名以及 IPv4 连接
您需要在系统尝试登录时执行此操作。
简单地删除 git 用户可能只会隐藏问题 - 因为有一些正在运行的东西正在进入另一台机器。
| 归档时间: |
|
| 查看次数: |
2337 次 |
| 最近记录: |