Fix Gitea SSH probe in plugin installer — drop bogus 'info' command

The probe ran 'ssh git@$ip info' expecting Gitea's banner in the response,
but 'info' is a Gitolite convention Gitea doesn't implement — it returns
'error: Too few arguments' instead, which never matched the grep, so a
real reachable Gitea host was never detected. Confirmed on HOST2: connecting
with no trailing command returns Gitea's actual banner correctly.
This commit is contained in:
Gmer4Lfe
2026-07-04 01:03:29 -04:00
parent c2597cb516
commit be6c16d74c
+1 -1
View File
@@ -145,7 +145,7 @@ if [[ ! -d "$SCRIPTS_DIR/.git" ]]; then
while IFS= read -r peer_ip; do
if ssh -i "$GITEA_SSH_KEY" -p "$SSH_PORT" \
-o ConnectTimeout=3 -o StrictHostKeyChecking=no \
-o BatchMode=yes "git@${peer_ip}" info 2>/dev/null | grep -q "varaverk\|Gitea\|gitea"; then
-o BatchMode=yes "git@${peer_ip}" 2>/dev/null | grep -q "varaverk\|Gitea\|gitea"; then
GITEA_IP="$peer_ip"
log "Gitea found on Tailscale peer $GITEA_IP"
break