Using a proxy for ssh connections based on netcat

Original link: https://www.iots.vip/post/ssh-over-proxy-by-nc.html

wechatpay.png

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.

This article is reprinted from: https://www.iots.vip/post/ssh-over-proxy-by-nc.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.