ssh behind socks 5

nc

ssh -o 'ProxyCommand nc -x xxx.xxx.xxx.xxx:1080 -X 5 -Pruser %h %p' root@xxx.xxx.xxx.xxx

-X 5 socks version 5
-P ruser proxy username
-x proxy_host|proxy:port

nc help1
nc help2

报错nc: authentication method negotiation failed
未找到原因

corkscrew

corkscrew只支持http(s),未尝试。

xshell

最终使用crossover+xshell配置proxy (记得xshell的输入为UTF-8,不然键盘不能输入)