Skip to main content

Erro: agente com falha ao entrar

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 GitHub.com em um computador Linux, é possível que você receba a seguinte mensagem em seu 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 saber mais, confira este relatório de problemas no Launchpad da Canonical.

Resolução

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

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy