Clash-Fake-IP模式下Git-SSH连接失败
问题现象 执行 git fetch --all 报错: 1 2 Connection closed by 198.18.0.35 port 22 fatal: Could not read from remote repository. 排查过程 1. 确认 remote 地址 1 2 git remote -v # origin git@github.com:xxx/yyy.git 使用的是 SSH 协议。 2. 排查 DNS 解析 1 2 3 nslookup github.com # Name: github.com # Address: 198.18.0.35 198.18.0.35 不是 GitHub 真实 IP,属于 198.18.0.0/15 保留段。这是 Clash Fake-IP 模式 的特征,即 DNS 返回虚拟 IP,由 Clash 透明代理接管流量。 ...