Spaces:
Running
Running
Download processor/scripts/run_db_tunnel_linux.sh from Stouching-Robotics/DataFlowing: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/spaces/Stouching-Robotics/DataFlowing/resolve/main/processor/scripts/run_db_tunnel_linux.sh
- Command line
-
hf download hf://spaces/Stouching-Robotics/DataFlowing/processor/scripts/run_db_tunnel_linux.sh
-
curl -L -o run_db_tunnel_linux.sh https://huggingface.co/spaces/Stouching-Robotics/DataFlowing/resolve/main/processor/scripts/run_db_tunnel_linux.sh
414 Bytes
| set -euo pipefail | |
| SSH_HOST="${EGODATA_SSH_HOST:-192.168.110.41}" | |
| SSH_USER="${EGODATA_SSH_USER:-Stouch}" | |
| LOCAL_PORT="${EGODATA_DB_LOCAL_PORT:-15432}" | |
| REMOTE_DB_HOST="${EGODATA_DB_REMOTE_HOST:-172.19.0.2}" | |
| REMOTE_DB_PORT="${EGODATA_DB_REMOTE_PORT:-5432}" | |
| exec ssh -o ExitOnForwardFailure=yes -N \ | |
| -L "127.0.0.1:${LOCAL_PORT}:${REMOTE_DB_HOST}:${REMOTE_DB_PORT}" \ | |
| "${SSH_USER}@${SSH_HOST}" | |