Repository Public
1#!/bin/bash2# operator-agent.sh — agent SSH persistant du nœud opérateur (socket fixe ~/.ssh/operator-agent.sock, clé chargée).3# Sert à `ForwardAgent` : un `git push` lancé SUR un autre nœud (remote-first) s'authentifie auprès de gitsrv avec la clé d'ici.4S="$HOME/.ssh/operator-agent.sock"; K="$HOME/.ssh/claude_remote_ed25519"5rm -f "$S"6/usr/bin/ssh-agent -D -a "$S" &7P=$!8for i in 1 2 3 4 5 6 7 8 9 10; do [ -S "$S" ] && break; sleep 0.5; done9SSH_AUTH_SOCK="$S" /usr/bin/ssh-add -q "$K"10wait $P11