{"meta":{"title":"Error: Agent admitted failure to sign","intro":"In rare circumstances, connecting to GitHub via SSH on Linux produces the error \"Agent admitted failure to sign using the key\". Follow these steps to resolve the problem.","product":"Authentication","breadcrumbs":[{"href":"/en/authentication","title":"Authentication"},{"href":"/en/authentication/troubleshooting-ssh","title":"Troubleshooting SSH"},{"href":"/en/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign","title":"Agent failure to sign"}],"documentType":"article"},"body":"# Error: Agent admitted failure to sign\n\nIn rare circumstances, connecting to GitHub via SSH on Linux produces the error \"Agent admitted failure to sign using the key\". Follow these steps to resolve the problem.\n\nWhen trying to SSH into GitHub.com on a Linux computer, you may see the following message in your terminal:\n\n```shell\n$ ssh -vT git@github.com\n> ...\n> Agent admitted failure to sign using the key.\n> debug1: No more authentication methods to try.\n> Permission denied (publickey).\n```\n\nFor more details, see [this issue report](https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/201786) on Canonical Launchpad.\n\n## Resolution\n\nYou should be able to fix this error by loading your keys into your SSH agent with `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\nIf your key does not have the default filename (`/.ssh/id_rsa`), you'll have to pass that path to `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```"}