如何使用两个代理与ssh进行端口转发

问题描述 投票:0回答:1

我通过以下方式创建SSH隧道,通过代理与远程服务器通信:

ssh -L 7777:remote:9999 user@proxy1

然后我使用以下软件运行我的软件:software --port localhost:7777

我需要使用从proxy1到另一个代理(proxy2),再到remote的另一个隧道,使隧道稍微复杂一些。换句话说,我想将命令更改为如下所示:

ssh -L 7777:proxy2:8888 user@proxy1

但是我不确定如何对proxy2进行处理以将来自proxy2:8888的所有内容传输到remote:9999。

我在proxy1proxy2上都有root特权。

ssh portforwarding openssh ssh-tunnel
1个回答
0
投票
  1. localhosthost1的隧道:

© www.soinside.com 2019 - 2024. All rights reserved.