# Erreur : l’agent a reconnu un échec de signature

Dans de rares cas, la connexion à GitHub via SSH sur Linux génère l’erreur "Agent admitted failure to sign using the key". Pour résoudre ce problème, suivez ces étapes.

Quand vous essayez d’établir une connexion SSH à votre instance GitHub Enterprise Server sur un ordinateur Linux, le message suivant peut s’afficher dans votre terminal :

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

Pour plus d’informations, consultez [ce rapport d'incident](https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/201786) sur Launchpad Canonical.

## Résolution

Vous devez être en mesure de corriger cette erreur en chargeant vos clés dans votre agent SSH avec `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 votre clé n’a pas le nom de fichier par défaut (`/.ssh/id_rsa`), vous devez passer ce chemin à `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)
```