首页 > 解决方案 > 设置 autossh 隧道

问题描述

我们有安装了 autossh 的服务器

隧道数约 20

今天我们添加了新的隧道,但不起作用。

如果更改新隧道而不是之前的新隧道,则新隧道可以工作,而之前没有。

例如

-o GatewayPorts .........................................................

-o GatewayPorts .........................................................

-o GatewayPorts .........................................................

-o GatewayPorts=yes -i /home/user/.ssh/user -NL 192.168.0.1:80:5.6.7.8:80 user@server.com 

工作正常

-o GatewayPorts=yes -i /home/user/.ssh/user -NL 192.168.0.2:80:1.2.3.4:80 user@servernew.com

不行


如果我们换线

-o GatewayPorts .........................................................

-o GatewayPorts .........................................................

-o GatewayPorts .........................................................

-o GatewayPorts=yes -i /home/user/.ssh/user -NL 192.168.0.2:80:1.2.3.4:80 user@servernew.com 

工作正常

-o GatewayPorts=yes -i /home/user/.ssh/user -NL 192.168.0.1:80:5.6.7.8:80 user@server.com 

不行

可能存在限制限制连接?

标签: linuxautossh

解决方案


推荐阅读