#!/bin/bash
# Connect to R630-04 from R630-03 (which we know works)
# This helps rule out network/SSH client issues

echo "Connecting to R630-03 first..."
sshpass -p 'L@kers2010' ssh -o StrictHostKeyChecking=no root@192.168.11.13 << 'EOF'
    echo "=== Connected to R630-03 ($(hostname)) ==="
    echo ""
    echo "Now attempting to connect to R630-04..."
    echo ""
    
    # Try verbose SSH to see what's happening
    ssh -v root@192.168.11.14 << 'R63004'
        echo "=== Successfully connected to R630-04 ==="
        hostname
        pveversion
        systemctl status pveproxy --no-pager | head -20
R63004
    
    echo ""
    echo "=== Connection attempt complete ==="
EOF

