为公众开辟一条反向隧道

时间:2015-04-30 09:07:58

标签: ubuntu port portforwarding ssh-tunnel

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

1 个答案:

答案 0 :(得分:0)

解决方案位于 / etc / ssh / sshd_config 取消注释 GatewayPorts是,重新启动,它将完美运行。