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
I do not recommend use socat because it only support socks4 But you can use ncat
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.