{"meta":{"title":"Erro: agente admitiu falha ao assinar","intro":"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.","product":"Autenticação","breadcrumbs":[{"href":"/pt/enterprise-server@3.22/authentication","title":"Autenticação"},{"href":"/pt/enterprise-server@3.22/authentication/troubleshooting-ssh","title":"Solucionar problemas de SSH"},{"href":"/pt/enterprise-server@3.22/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign","title":"Falha do agente em assinar"}],"documentType":"article"},"body":"# Erro: agente admitiu falha ao assinar\n\nEm 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.\n\nAo 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:\n\n```shell\n$ ssh -vT git@HOSTNAME\n> ...\n> Agent admitted failure to sign using the key.\n> debug1: No more authentication methods to try.\n> Permission denied (publickey).\n```\n\nPara saber mais, confira [este relatório de problemas](https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/201786) no Launchpad da Canonical.\n\n## Resolução\n\nCorrija esse erro carregando suas chaves no agente SSH com `ssh-add`:\n\n```shell\n# start the ssh-agent in the background\n$ eval \"$(ssh-agent -s)\"\n> Agent pid 59566\n$ ssh-add\n> Enter passphrase for /home/YOU/.ssh/id_rsa: [tippy tap]\n> Identity added: /home/YOU/.ssh/id_rsa (/home/YOU/.ssh/id_rsa)\n```\n\nSe a sua chave não tiver o nome de arquivo padrão (`/.ssh/id_rsa`), você precisará transmitir esse caminho para `ssh-add`:\n\n```shell\n# start the ssh-agent in the background\n$ eval \"$(ssh-agent -s)\"\n> Agent pid 59566\n$ ssh-add ~/.ssh/my_other_key\n> Enter passphrase for /home/YOU/.ssh/my_other_key: [tappity tap tap]\n> Identity added: /home/YOU/.ssh/my_other_key (/home/YOU/.ssh/my_other_key)\n```"}