Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: use proxy SSH key for cleanup of standalone nodes
Richard Courtmanc9bbb5e6fb32
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.shindex 34a567c1de..107116ad54 100755--- a/scripts/install-sensor-proxy.sh+++ b/scripts/install-sensor-proxy.sh@@ -418,8 +418,17 @@ elseelselog_info "Cleaning up remote host: $HOST_CLEAN"+ # Try to use proxy's SSH key first (for standalone nodes), fall back to default+ PROXY_KEY="/var/lib/pulse-sensor-proxy/ssh/id_ed25519"+ SSH_CMD="ssh -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=5"++ if [[ -f "$PROXY_KEY" ]]; then+ log_info "Using proxy SSH key for cleanup"+ SSH_CMD="$SSH_CMD -i $PROXY_KEY"+ fi+# Remove both pulse-managed-key and pulse-proxy-key entries from remote host- ssh -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=5 root@"$HOST_CLEAN" \+ $SSH_CMD root@"$HOST_CLEAN" \"sed -i -e '/# pulse-managed-key\$/d' -e '/# pulse-proxy-key\$/d' /root/.ssh/authorized_keys" 2>&1 | \logger -t "$LOG_TAG" -p user.infodiff --git a/scripts/pulse-sensor-cleanup.sh b/scripts/pulse-sensor-cleanup.shindex 23534adc31..8ea979bf75 100644--- a/scripts/pulse-sensor-cleanup.sh+++ b/scripts/pulse-sensor-cleanup.sh@@ -105,8 +105,17 @@ elseelselog_info "Cleaning up remote host: $HOST_CLEAN"+ # Try to use proxy's SSH key first (for standalone nodes), fall back to default+ PROXY_KEY="/var/lib/pulse-sensor-proxy/ssh/id_ed25519"+ SSH_CMD="ssh -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=5"++ if [[ -f "$PROXY_KEY" ]]; then+ log_info "Using proxy SSH key for cleanup"+ SSH_CMD="$SSH_CMD -i $PROXY_KEY"+ fi+# Remove both pulse-managed-key and pulse-proxy-key entries from remote host- ssh -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=5 root@"$HOST_CLEAN" \+ $SSH_CMD root@"$HOST_CLEAN" \"sed -i -e '/# pulse-managed-key\$/d' -e '/# pulse-proxy-key\$/d' /root/.ssh/authorized_keys" 2>&1 | \logger -t "$LOG_TAG" -p user.info