Skip to main content

Error: El agente admitió una falla para registrarse

En raras circunstancias, la conexión a GitHub a través de SSH en Linux genera el error "Agent admitted failure to sign using the key". Sigue los pasos siguientes para resolver el problema.

Cuando intentes conectarte a SSH en GitHub.com en un equipo Linux, posiblemente veas el siguiente mensaje en tu terminal:

$ ssh -vT git@github.com
> ...
> Agent admitted failure to sign using the key.
> debug1: No more authentication methods to try.
> Permission denied (publickey).

Para obtener más información, consulta este informe de problemas en Canonical Launchpad.

Solución

Debería poder solucionar este error mediante la carga de las claves en el agente de SSH con ssh-add:

# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566
$ ssh-add
> Enter passphrase for /home/YOU/.ssh/id_rsa: [tippy tap]
> Identity added: /home/YOU/.ssh/id_rsa (/home/YOU/.ssh/id_rsa)

Si la clave no tiene el nombre de archivo predeterminado (/.ssh/id_rsa), tendrá que pasar esa ruta a ssh-add:

# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566
$ ssh-add ~/.ssh/my_other_key
> Enter passphrase for /home/YOU/.ssh/my_other_key: [tappity tap tap]
> Identity added: /home/YOU/.ssh/my_other_key (/home/YOU/.ssh/my_other_key)