加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

gnupg – 如何在WSL中处理gpg-agent?

发布时间:2020-12-14 01:40:57 所属栏目:Linux 来源:网络整理
导读:我试图释放一个Jar并且gpg-agent没有启动.根据 https://www.gnupg.org/documentation/manuals/gnupg-devel/Invoking-GPG_002dAGENT.html,它应该在任何GnuPG程序的调用时自动启动,但在WSL中似乎不是这样. pupeno@DESKTOP-5N8VFOD:~$gpg-agentgpg-agent: no gp
我试图释放一个Jar并且gpg-agent没有启动.根据 https://www.gnupg.org/documentation/manuals/gnupg-devel/Invoking-GPG_002dAGENT.html,它应该在任何GnuPG程序的调用时自动启动,但在WSL中似乎不是这样.

pupeno@DESKTOP-5N8VFOD:~$gpg-agent
gpg-agent: no gpg-agent running in this session

有一会儿,我想GnuPG可能不会在WSL中运行,但我设法手动启动:

pupeno@DESKTOP-5N8VFOD:~$eval $(gpg-agent --daemon)
pupeno@DESKTOP-5N8VFOD:~$gpg-agent
gpg-agent: gpg-agent running and available

那么,缺少什么?为什么不自动启动?或者我该如何开始呢?

解决方法

您希望gpg-agent自动启动,因此从?/ .bashrc启动它.

echo 'eval $(gpg-agent --daemon)' >> ~/.bashrc

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读