# Diagnose D2TESTNAS SSH connection issues

Write-Host "[INFO] Testing SSH connection to D2TESTNAS (192.168.0.9)..."
Write-Host ""

# Try SSH with verbose output
$Output = & ssh -v root@192.168.0.9 "echo 'Connection successful'" 2>&1

Write-Host "[INFO] SSH Output:"
$Output | ForEach-Object { Write-Host $_ }

Write-Host ""
Write-Host "[INFO] If key authentication is failing, you can:"
Write-Host "  1. Access web interface: http://192.168.0.9/"
Write-Host "     User: admin, Password: Paper123!@#-nas"
Write-Host "  2. Check SSH service status"
Write-Host "  3. Verify authorized_keys file"
Write-Host "  4. Restart SSH service if needed"
