巨大的错误消息:代理承认未能使用密钥签名

mec*_*eat 3 version-control git ubuntu

尝试 gitorious 我遇到了以下错误消息形式的障碍:

Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

在这里找到了一个解决方法http://identi.ca/conversation/32495642,并将很快将其作为答案发布。

mec*_*eat 5

所以,正如这里提到的http://identi.ca/conversation/32495642解决方法(或者这可能是标准协议?)是使用ssh-add.

$ ssh-add ~/.ssh/id_rsa
Enter passphrase for /home/adam/.ssh/id_rsa:
Run Code Online (Sandbox Code Playgroud)

完成后,以下命令将文件上传到远程存储库:

$ git push origin master
Run Code Online (Sandbox Code Playgroud)