`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.
More on Authentication and Remote Access
`[email protected]: Permission denied (publickey).` followed by `fatal: Could not read from remote repository.`Beginner`remote: Support for password authentication was removed on August 13, 2021.`Beginner`fatal: Authentication failed for 'https://github.com/org/repo.git/'` with a token that worked last month.Beginner`WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!` when connecting to GitHub over SSH.Intermediate`remote: Repository not found.` for a repo you can open in the browser.Beginner`ssh -T [email protected]` says "Hi someone-else!" but you need your work account.Intermediate