- I know that I can run a socks5 proxy by
ssh -D some-port-number remote-server-url
. - I know that I can configure my applications (for example firefox) to use socks5 proxy (often by specifying something like
socks5://localhost:that-port-number-metioned-above
). - I hear people online referring to this technique as "socks5 proxy" or "ssh tunneling"; sometimes I even see people talking about "reverse ssh tunnling".
- But as far as I know socks5 and ssh are totally different protocols, the only similarity between them is that they both have server-client architecture. Reading wiki definitions and googling on these concepts didn't clarify my confusion..
So how are these concepts -- SOCKS5 proxying
, ssh tunneling
, reverse ssh tunneling
related with each other?