wnlen / clash-for-linux

clash-for-linux
1.3k stars 488 forks source link

支持ssh proxy么? #33

Closed DingXuefeng closed 2 months ago

DingXuefeng commented 2 months ago

可以访问https://google.com/ 。但是按照教程设置

Host github.com
        HostName github.com
        User git
        ProxyCommand nc -v -x 127.0.0.1:7890 %h %p

无法git clone

只能通过ssh方式clone么?

DingXuefeng commented 2 months ago

我自己解决问题了。查到问题是因为机场会拒绝22端口。

Host github.com
    Hostname ssh.github.com
    Port 443
    IdentityFile ~/.ssh/id_rsa
    PreferredAuthentications publickey
    ProxyCommand corkscrew 127.0.0.1 7890 %h %p

需要sudo apt install corkscrewssh -v -T git@github.com测试是否能够成功

DingXuefeng commented 2 months ago

问题已解决,可以关闭issue