小编Rus*_*mur的帖子

如何将 SSH 与 SOCKS 5 代理一起使用?

我通过 PuTTY 设置了一个 SOCKS5 代理,端口 7777 配置为动态端口。我可以通过配置 firefox/filezilla/etc 使用 SOCKS 代理localhost和 port来使用它们7777。但是我不知道如何使用动态端口 ssh(通过 Cygwin)到远程服务器。这可能吗?

我已经尝试ProxyCommand通过以下方法使用。

  1. ~/.ssh/config使用以下行创建:

    ProxyCommand /usr/bin/nc -X connect -x 127.0.0.1:7777 %h %p
    
    Run Code Online (Sandbox Code Playgroud)
  2. 运行 ssh -p22 user@remotehost

我得到的消息是 ssh_exchange_identification: Connection closed by remote host

linux ssh cygwin proxy socks

51
推荐指数
3
解决办法
9万
查看次数

标签 统计

cygwin ×1

linux ×1

proxy ×1

socks ×1

ssh ×1