Skip to main content

오류: 에이전트가 서명 실패를 인정했습니다.

드문 경우지만 Linux에서 SSH를 통해 GitHub에 연결하면 "Agent admitted failure to sign using the key" 오류가 발생합니다. 이 문제를 해결하려면 다음 단계를 수행합니다.

When trying to SSH into GitHub.com on a Linux computer, you may see the following message in your terminal:

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

For more details, see this issue report.

Resolution

You should be able to fix this error by loading your keys into your SSH agent with 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)

If your key does not have the default filename (/.ssh/id_rsa), you'll have to pass that path to 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)