如何在 mac/linux 上通过 SSH 连接到 socks5 代理后面的服务器?

jim*_*ash 4 unix ssh socks

我正在使用 ssh 尝试连接到远程网络后面的服务器。该服务器位于同一网络上的 socks5 代理后面。代理服务器的端口是1080,ssh端口是22,但是失败了。调试说端口 22 上的连接被拒绝。

我认为有必要安装开瓶器,所以它用自制软件安装并使用此链接作为参考

debug1: Reading configuration data /Users/jason/.ssh/config
debug1: Applying options for XXX.XX.XX
debug1: Reading configuration data /etc/ssh_config
debug1: Executing proxy command: exec /usr/local/bin/corkscrew proxy.server 1080 XX.XXX.XX.XX 22
debug1: identity file /Users/jason/.ssh/identity type -1
debug1: permanently_drop_suid: 501
debug1: identity file /Users/jason/.ssh/id_rsa type 1
debug1: identity file /Users/jason/.ssh/id_dsa type 2
Run Code Online (Sandbox Code Playgroud)

ohh*_*hho 7

 ssh -o ProxyCommand='nc -x 127.0.0.1:30000 %h %p' user@destination.com
Run Code Online (Sandbox Code Playgroud)

127.0.0.1:30000袜子5代理在哪里。信用:杰思罗卡尔