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

HOST="${SDP_92_HOST:-administrator@172.18.136.92}"
PASS="${SDP_92_PASS:-password}"

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" "$@"
