问题

开启代理软件的 TUN 模式后,进行 git push 会失败,显示

1
Connection closed by 198.18.0.104 port 22

由于推送目标是 github,使用下面命令亦可复现

1
ssh -T git@github.com

解决方法

编辑:

1
~/.ssh/config

加入:

1
2
3
4
Host github.com
  HostName ssh.github.com
  Port 443
  IdentityFile ~/.ssh/id_ed25519

该走 HTTPS 连接。

然后重新测试:

1
ssh -T git@github.com

即可正常连接。

发现新版本

当前站点有新版本可用。