# Error: El agente admitió un fallo al firmar

En raras circunstancias, la conexión a GitHub mediante 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:

```shell
$ 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](https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/201786) 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`:

```shell
# 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`:

```shell
# 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)
```