Connect with SSH through a proxy

后端 未结 11 1607
我在风中等你
我在风中等你 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 09:53

    If your SSH proxy connection is going to be used often, you don't have to pass them as parameters each time. you can add the following lines to ~/.ssh/config

    Host foobar.example.com
        ProxyCommand          nc -X connect -x proxyhost:proxyport %h %p
        ServerAliveInterval   10
    

    then to connect use

    ssh foobar.example.com
    

    Source:

    http://www.perkin.org.uk/posts/ssh-via-http-proxy-in-osx.html

提交回复
热议问题