Interview Prep/Git & GitHub/Authentication and Remote Access

`sign_and_send_pubkey: signing failed for ED25519 ... from agent: agent refused operation`

AdvancedTroubleshootingAuthentication and Remote Access
Answer

Likely causes → The agent (ssh-agent, 1Password, Secretive, a hardware key) refused to sign: it is locked, confirmation timed out or was denied, or the key requires a touch.

Diagnose →

echo $SSH_AUTH_SOCK
ssh-add -l
ssh -vvv -T [email protected] 2>&1 | grep -i -E "agent|sign"

Fix → Unlock the agent or approve the prompt; replug the hardware key and touch it when it blinks. If SSH_AUTH_SOCK points to a dead socket, restart the agent (eval "$(ssh-agent -s)" and ssh-add).

Prevent → Use one agent consistently and avoid stale sockets in long-lived tmux sessions.

All Git & GitHub questions Roadmap: Git & GitHub

More on Authentication and Remote Access