前言
我们为终端设置clash代理的时候,一般都是设置的http/https或者socks.但是我们用github的时候一般是用密钥也就是ssh链接.
教程
在~/.ssh/config
文件中加入以下的代码.
Host github.com
Hostname ssh.github.com
Port 443
User git
ProxyCommand nc -v -x 172.28.208.1:7890 %h %p
我们为终端设置clash代理的时候,一般都是设置的http/https或者socks.但是我们用github的时候一般是用密钥也就是ssh链接.
在~/.ssh/config
文件中加入以下的代码.
Host github.com
Hostname ssh.github.com
Port 443
User git
ProxyCommand nc -v -x 172.28.208.1:7890 %h %p