配置ssh访问GitHub
GitHub国内网络有时候访问速度很慢,连不上去,所以要借助VPN。
当VPN开启全局模式时,需要将ssh配置增加一条
Host github.com User git ProxyCommand connect -H 127.0.0.1:7890 %h %p
端口号为VPN的端口查询自己设置即可。
经常会涉及的问题有
Connection reset by 20.205.243.160 port 443
Kex_exchange_identification: Connection closed by remote hostConnection closed by 20.205.243.166 port 22