Connect with SSH through a proxy

后端 未结 11 1611
我在风中等你
我在风中等你 2020-12-12 09:03

I have no real idea what I\'m doing here so please bear that in mind if you can help me!

I am trying to connect to my virtual server through a proxy but I can\'t con

11条回答
  •  伪装坚强ぢ
    2020-12-12 10:00

    @rogerdpack for windows platform it is really hard to find a nc.exe with -X(http_proxy), however, I have found nc can be replaced by ncat, full example as follows:

    Host github.com
         HostName github.com
             #ProxyCommand nc -X connect -x 127.0.0.1:1080 %h %p
             ProxyCommand ncat --proxy 127.0.0.1:1080 %h %p
         User git
         Port 22
         IdentityFile D:\Users\Administrator\.ssh\github_key
    

    and ncat with --proxy can do a perfect work

提交回复
热议问题