我通过 PuTTY 设置了一个 SOCKS5 代理,端口 7777 配置为动态端口。我可以通过配置 firefox/filezilla/etc 使用 SOCKS 代理localhost和 port来使用它们7777。但是我不知道如何使用动态端口 ssh(通过 Cygwin)到远程服务器。这可能吗?
我已经尝试ProxyCommand通过以下方法使用。
~/.ssh/config使用以下行创建:
ProxyCommand /usr/bin/nc -X connect -x 127.0.0.1:7777 %h %p
Run Code Online (Sandbox Code Playgroud)我得到的消息是 ssh_exchange_identification: Connection closed by remote host