Blame view

docker/portforward.sh 500 Bytes
3cd84ccc   zhangqijia   fix: 裝備位置修改
1
  # https://cloud.tencent.com/developer/article/1722055
a96e994d   zhangqijia   fix: add portforw...
2
3
4
5
6
7
8
  account_port=8080
  game_port=8849
  gm_port=8880
  local_ip=192.168.0.100
  remote_ip=47.118.38.251
  remote_user=root
  
3cd84ccc   zhangqijia   fix: 裝備位置修改
9
10
  arg='-o ServerAliveInterval=60 -o ServerAliveCountMax=2'
  
a96e994d   zhangqijia   fix: add portforw...
11
12
13
  ssh -N -f -R ${remote_ip}:${account_port}:${local_ip}:${account_port} ${remote_user}@${remote_ip}
  ssh -N -f -R ${remote_ip}:${game_port}:${local_ip}:${game_port} ${remote_user}@${remote_ip}
  ssh -N -f -R ${remote_ip}:${gm_port}:${local_ip}:${gm_port} ${remote_user}@${remote_ip}