【问题标题】:opening a reverse tunnel for public为公众开通反向隧道
【发布时间】:2023-04-02 07:07:01
【问题描述】:

你好机器 AI 有一个摄像头,它在 NAT 后面的端口 60000 上有一个网络服务器,它使用“autossh -M 0 -R 60000:localhost:60000 -p 5000 user@public_ip 连接到机器 B "(端口 5000 是我的 SSH。在机器 B 上,我可以在 localhost:60000 上看到服务器。我希望能够从机器 C 的 public_ip:60000 访问它,机器 B 有一个公共 ip,我已经可以访问。这怎么可能,我在两台机器上都使用 Ubuntu 14.04,还有更简单的方法吗?

【问题讨论】:

    标签: ubuntu port portforwarding ssh-tunnel


    【解决方案1】:

    解决方法在/etc/ssh/sshd_config取消注释GatewayPorts Yes,重启,就可以完美运行了。

    【讨论】:

      猜你喜欢
      • 2020-08-26
      • 2021-06-19
      • 2012-06-06
      • 1970-01-01
      • 2016-04-22
      • 1970-01-01
      • 2010-09-27
      • 1970-01-01
      • 2012-01-26
      相关资源
      最近更新 更多