This commit is contained in:
admin committed 2026-11-05 14:52:25 +08:00
1 parent 47218488aa
commit 8d6ecb5868
1 file changed
+16 -10
+16 -10
View File
@@ -1,13 +1,17 @@
@echo off
title CPA Tunnel - keep this window OPEN
echo ============================================================
echo SSH tunnel: local ports ^(8317 8085 1455 54545 51121 11451^)
echo ---------------^> Singapore server 127.0.0.1
REM ==========================================================================
REM SSH 隧道:把服务器上 CPA 的端口转发到本地
REM 用法:双击运行,保持窗口开着(关闭窗口 = 隧道断开)
REM 转发端口:
REM 8317 = CPA 主 API + 管理面板
REM 8085 / 1455 / 54545 / 51121 / 11451 = Google OAuth 授权回调端口(登录必须通)
REM 3001 = Gitea(私人代码仓库 + Obsidian 笔记备份)
REM ==========================================================================
echo.
echo Panel URL : http://localhost:8317/management.html
echo Note : window must STAY OPEN while using panel / OAuth
echo Disconnect : just close this window
echo ============================================================
echo 正在建立 SSH 隧道到 43.156.118.130 ...
echo 保持此窗口开着,关闭窗口即断开隧道。
echo.
ssh -N ^
-L 8317:127.0.0.1:8317 ^
-L 8085:127.0.0.1:8085 ^
@@ -15,7 +19,9 @@ ssh -N ^
-L 54545:127.0.0.1:54545 ^
-L 51121:127.0.0.1:51121 ^
-L 11451:127.0.0.1:11451 ^
-L 3001:127.0.0.1:3001 ^
ubuntu@43.156.118.130
echo.
echo Tunnel closed.
pause
echo 隧道已断开,按任意键关闭窗口。
pause >nul