linux - 设置 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
不行
可能存在限制限制连接?
解决方案
推荐阅读
- python - Bash 操作员错误:气流中没有这样的文件或目录
- node.js - 如何获取特定的用户数组(mongodb,nodejs)
- node.js - 在 URL 中指定端口 80 与未指定端口的结果不同
- android - 当设备仍处于开启状态时,BLE BluetoothGattCallback 会获得 STATE_DISCONNECTED
- php - 使用数组和 end() 函数的严格标准问题
- java - MyBatis SqlSession autoCommit = false vs ExecutorType.BATCH
- javascript - 如何在 Github 上推送 JavaScript 项目?
- angular7 - getFullYear() 不是函数
- azure-devops - 在 Azure Devops 中更改组织 URL 时对管道代理的影响
- javascript - 不同框架中的 Web 组件