Bot & Automation

Treding Forex Ai

/root/hermes-projects/Treding Forex Ai

mt5-bridge/scripts/start-vps-tunnel.ps1 text
$ErrorActionPreference = "Stop"

$bridgeRoot = Split-Path -Parent $PSScriptRoot
$envPath = Join-Path $bridgeRoot ".env"

if (-not (Test-Path -LiteralPath $envPath)) {
  throw ".env bridge belum ada."
}

Write-Output "Starting reverse tunnel: VPS 127.0.0.1:8095 -> laptop 127.0.0.1:8095"
Start-Process -FilePath "ssh" `
  -ArgumentList @(
    "-N",
    "-o", "ExitOnForwardFailure=yes",
    "-R", "127.0.0.1:8095:127.0.0.1:8095",
    "root@187.77.119.32"
  ) `
  -WindowStyle Hidden

Write-Output "TUNNEL_STARTED"