How to add socks proxy to ssh config file?

后端 未结 3 713
[愿得一人]
[愿得一人] 2021-01-31 13:27

I know how to forward SOCKS proxy on the command like below

ssh -D port_number user@host

This works well but I want to be able to put that forw

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 14:17

    I do not recommend use socat because it only support socks4 But you can use ncat

    1. install ncat
    2. add this in your ssh config file ProxyCommand ncat --proxy-type socks5 --proxy 127.0.0.1:1080 %h %p

    You may need to check ncat options if it does not work.

提交回复
热议问题