Files
aitbc/scripts/start_remote_tunnel.sh
oib 9b9c5beb23 ```
chore: enhance .gitignore and remove obsolete documentation files

- Reorganize .gitignore with categorized sections for better maintainability
- Add comprehensive ignore patterns for Python, Node.js, databases, logs, and build artifacts
- Add project-specific ignore rules for coordinator, explorer, and deployment files
- Remove outdated documentation: BITCOIN-WALLET-SETUP.md, LOCAL_ASSETS_SUMMARY.md, README-CONTAINER-DEPLOYMENT.md, README-DOMAIN-DEPLOYMENT.md
```
2026-01-24 14:44:51 +01:00

23 lines
611 B
Bash
Executable File

#!/bin/bash
# Start SSH tunnel to remote AITBC coordinator
echo "Starting SSH tunnel to remote AITBC coordinator..."
# Check if tunnel is already running
if pgrep -f "ssh.*-L.*8001:localhost:8000.*aitbc" > /dev/null; then
echo "✅ Tunnel is already running"
exit 0
fi
# Start the tunnel
ssh -f -N -L 8001:localhost:8000 aitbc
if [ $? -eq 0 ]; then
echo "✅ SSH tunnel established on port 8001"
echo " Remote coordinator available at: http://localhost:8001"
echo " Health check: curl http://localhost:8001/v1/health"
else
echo "❌ Failed to establish SSH tunnel"
exit 1
fi