Using a proxy for ssh connections based on netcat
Sometimes, we need to forward our ssh connection through a proxy, For example, you want to connect your cloud server through socks5 proxy. When you try to specify a proxy by executing export all_proxy=socks5://127.0.0.1:123
command through terminal, you will find that it does not take effect for ssh connection. Fortunately, netcat
can easily achieve your purpose.