ssh透传

nodeC节点上有一个HTTP服务器,监听在80端口
nodeA节点可以访问nodeB,nodeB可以访问节点nodeC,但nodeA无法直接访问nodeC.

[root@nodeB ~]# ssh -N -f -o GatewayPorts=yes -L *:8808:192.168.0.3:80 root@192.168.0.3
[root@nodeB ~]# curl http://localhost:8808/zabbix

301 Moved Permanently

Moved Permanently

The document has moved here.

坚持原创技术分享,您的支持将鼓励我继续创作!