How to debug a ssh tunnel

后端 未结 1 764
半阙折子戏
半阙折子戏 2021-02-08 06:00

I want to setup a simple ssh tunnel from a local machine to a machine on the internet. I\'m using

ssh -D 8080 -f -C -q -N -p 12122 @

1条回答
  •  无人共我
    2021-02-08 06:40

    To get more information out of your SSH connection for debugging, leave out the -q and -f options, and include -vvv:

    ssh -D 8080 -vvv -N -p 12122 @
    

    To address your actual problem, by using ssh -D you're essentially setting up a SOCKS proxy which I believe is not supported by default in wget.

    You might have better luck with curl which provides SOCKS suport via the --socks option.

    If you really really need to use wget, you'll have to recompile your own version to include socks support. There should be an option for ./configure somewhere along the lines of --with-socks.

    Alternatively, look into tsock which can intercept outgoing network connections and redirecting them through a SOCKS server.

    0 讨论(0)
提交回复
热议问题