Git - fatal error : Agent admitted failure to sign using the key

提交时出现如下问题:

1 git push -u origin master
2 
3 Agent admitted failure to sign using the key.
4 Permission denied (publickey).
5 fatal: The remote end hung up unexpectedly

可以使用如下方法解决:

1 ssh-add ~/.ssh/id_rsa

然后重启ssh:

1 restart ssh

你可能感兴趣的:(error)