Nic*_*tov 9 networking ssh unix tunnel
我使用以下命令来设置反向隧道:
ssh -i dev.pem -vvv -R 8480:localhost:8080 user@host.com "sleep 6000"
Run Code Online (Sandbox Code Playgroud)
最终发生的是 ssh 开始侦听 lo 设备,而不是在 eth0 设备上(绑定到 127.0.0.1 而不是删除公共 ip)。
有什么线索可以改变这种行为吗?
在 /etc/ssh/sshd_config 中启用 GatewayPorts。
参考:http : //www.symantec.com/connect/articles/ssh-port-forwarding