离家两周回来发现 git 无法推拉代码,经排查发现是软路由代理问题。

bruce:~$ ssh -T [[email protected]](<mailto:[email protected]>)
kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.160 port 22

通过修改 ssh config

Host github.com
    HostName ssh.github.com
    Port 443 
    User asktao
    IdentityFile ...

测试

bruce:~$ ssh -T [email protected]
Hi asktao! You've successfully authenticated, but GitHub does not provide shell access.

解决。