# Erro: agente admitiu falha ao assinar

Em circunstâncias raras, conectar-se ao GitHub via SSH no Linux produz o erro "Agent admitted failure to sign using the key". Siga estas etapas para resolver o problema.

Ao tentar se conectar via SSH ao sua instância do GitHub Enterprise Server em um computador Linux, é possível que você receba a seguinte mensagem em seu terminal:

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

Para saber mais, confira [este relatório de problemas](https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/201786) no Launchpad da Canonical.

## Resolução

Corrija esse erro carregando suas chaves no agente SSH com `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)
```

Se a sua chave não tiver o nome de arquivo padrão (`/.ssh/id_rsa`), você precisará transmitir esse caminho para `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)
```