gpg-agent
状态手册页:
The agent is usualy started on demand by gpg, gpgsm, gpgconf or
gpg-connect-agent. Thus there is no reason to start it manually.
In case you want to use the included Secure Shell Agent you may
start the agent using:
gpg-connect-agent /bye
The usual way to run the agent is from the ~/.xsession file:
eval $(gpg-agent --daemon)
这一方面告诉我“没有理由手动启动它”,另一方面告诉我如何手动启动它。-我在这里误解了吗?
在我的系统上,似乎确实必须手动启动它。否则例如gpg-connect-agent
抱怨:can't connect to the agent: IPC connect call failed
。-是否需要gpg-connect-agent
按照手册页中所述配置任何东西来启动代理?
另外的手册页上gpg-connect-agent
说:
--agent-program file
Specify the agent program to be started if none is running.
但是gpg-connect-agent --help
没有列出该选项,如果我尝试使用该命令,该命令也会抱怨。
好像手册页描述了另一个命令,还是我错过了重要的事情?
我的系统是当前的Arch Linux。(在另一个debian机器上情况相同。)
要求的详细信息:
$ gpg --version
gpg (GnuPG) 2.0.22
libgcrypt 1.5.3
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ?, ?
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
$ gpg-connect-agent --version
gpg-connect-agent (GnuPG) 2.0.22
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
$ man gpg-connect-agent |grep -A1 agent-program
--agent-program file
Specify the agent program to be started if none is running.
$ gpg-connect-agent --agent-program foo
gpg-connect-agent: invalid option "--agent-program"
$ gpg-connect-agent /bye
gpg-connect-agent: can't connect to the agent: IPC connect call failed
您使用的是哪个版本的gpg-agent和gpg-connect-agent?
—
珍妮D
另请注意,还有其他gpg keyring守护程序。例如,gnome具有gnome密钥环,该密钥环可处理gpg,ssh和常规密码。使用这些密码通常会更好,因为您可以使用一个密码将其全部解锁,并且在登录时可以自动将其解锁。
—
Patrick
我在上面添加了具体细节。我知道gnome-keyring-daemon,但是我不在那个盒子上运行gnome。-当前的问题是,gpg是否能够按需启动自己的守护程序。
—
michas