标签: ssh websocket ssh-tunnel
我希望用户 A 能够连接到位于用户 B 中的 websockets 服务器。我试图通过使用选项 {{1} 创建从用户 A 到中间 EC2 机器的隧道来实现这一点} 以及从用户 B 到 EC2 的反向隧道,选项为 -L port:localhost:port。然后我希望从用户 A 连接到 -R port:localhost:port 并在 localhost:port 处登陆用户 B。
-L port:localhost:port
-R port:localhost:port
localhost:port
但我无法连接,连接未建立。
我的做法正确吗?至少在理论上?