#!/usr/bin/env bash
# SSH into the gateway VM (172.18.139.186). Wraps ssh with the known password.
# Usage: scripts/ssh-186.sh [extra ssh args...]
set -euo pipefail
cd "$(dirname "$0")/.."

HOST="${SDP_186_HOST:-administrator@172.18.139.186}"
PASS="${SDP_186_PASS:-Bre@kthrough2312}"

if ! command -v sshpass >/dev/null 2>&1; then
  echo "sshpass not found. Install with: brew install sshpass" >&2
  exit 1
fi

exec sshpass -p "$PASS" ssh \
  -o StrictHostKeyChecking=no \
  -o UserKnownHostsFile=/dev/null \
  -o LogLevel=ERROR \
  "$HOST" "$@"
