在不运行gpg-agent的情况下,我可以输入密码来签名:
$ echo 123 | gpg -s
You need a passphrase to unlock the secret key for
user: "Mr. Ops <ops@bxxx.com>"
2048-bit RSA key, ID 20F31903, created 2014-03-13
gpg: gpg-agent is not available in this session
Enter passphrase:
工作良好。但是我不想一直输入密码,所以我运行gpg-agent:
$ eval $(gpg-agent --daemon)
现在,我希望至少被提示输入一次密码,但是我从来没有被提示过,使用gpg的所有操作都会失败。
$ echo 123 | gpg -s
You need a passphrase to unlock the secret key for
user: "Mr. Ops <ops@bxxxx.com>"
2048-bit RSA key, ID 20F31903, created 2014-03-13
gpg: cancelled by user
gpg: no default secret key: bad passphrase
gpg: signing failed: bad passphrase
如何将密码存储在代理中?将其保存在那里后,如何在登录会话中将其保存在那里?(理想情况下,我再也不想再收到提示了。)这是在具有标准apt-get gpg软件包的Ubuntu 12.04.4上,以防万一。