在syslog
我的 Ubuntu 服务器中,每当我使用 SSH 用户帐户登录时都会出现错误。
systemd[27299]: usr/bin/gpg-agent failed (exitcode=2): General error
systemd[27299]: gpgconf: fatal error (exit status 1)
systemd[27299]: Listening on GnuPG network certificate management daemon.
systemd[27299]: Reached target Timers.
systemd[27299]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
systemd[27299]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
systemd[27299]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
systemd[27299]: Listening on GnuPG cryptographic agent and passphrase cache.
我真的不知道这里发生了什么,因为我不知道 GnuPG 或gpg-agent
. 我在 HowToForge 中发现了一个线程,用户遇到了类似的问题,并且回答者提到了一些关于 OSSEC 和一些ispconfig
我不明白的内容:https ://www.howtoforge.com/community/threads/error-登录时通过 ssh.81005/ 登录时的消息
错误会gpgconf
带来安全问题吗?我如何解决它?有人也可以解释一下gpg-agent
吗?
我发现了这个问题。这实际上是因为我将主目录设置为用户没有权限的文件夹。这导致系统无法
.gnupg
在主文件夹中创建,从而导致错误。在这里找到了答案:chroot、gpg-agent 和 Ubuntu 18.04。