ssh over socks5

nc要使用netcat-openbsd版本或者使用nmap实作的ncat

可以在ssh命令行或者config文件中:

ProxyCommand /bin/nc -x 127.0.0.1:1080 %h %p
#ProxyCommand /usr/bin/ncat --proxy-type socks5 --proxy 127.0.0.1:1080 %h %p

可以使用如下命令切换nc版本:

$ sudo update-alternatives --config nc

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.