#!/bin/bash
# SSH to Proxmox Site 1 (ml110-01)

set -e

PROXMOX_PASSWORD="L@kers2010"
IP="192.168.11.10"
NAME="ml110-01"

echo "Connecting to $NAME at $IP..."

# Check if sshpass is installed
if command -v sshpass &> /dev/null; then
    sshpass -p "$PROXMOX_PASSWORD" ssh -o StrictHostKeyChecking=no root@$IP
else
    echo "sshpass not installed. Using regular SSH (you'll need to enter password manually)."
    echo "Password: $PROXMOX_PASSWORD"
    ssh -o StrictHostKeyChecking=no root@$IP
fi

