TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Using gpg-agent Effectively

28 点作者 eklitzke大约 7 年前

2 条评论

phyzome大约 7 年前
I just started using gpg-agent recently [1] when I had to figure out how to store secrets in Ansible&#x27;s Vault without entering the vault passphrase every time. Here&#x27;s the guide I used:<p><a href="https:&#x2F;&#x2F;blog.erincall.com&#x2F;p&#x2F;using-pgp-to-encrypt-the-ansible-vault" rel="nofollow">https:&#x2F;&#x2F;blog.erincall.com&#x2F;p&#x2F;using-pgp-to-encrypt-the-ansible...</a><p>It works really well! I open a terminal, use ssh-agent to get access to the master SSH key, and do my Ansible stuff, which then uses gpg-agent to access the Vault. I basically end up with a terminal session with elevated privileges.<p>[1] other than Emacs&#x27;s built-in support for working with encrypted files, I guess
jfkw大约 7 年前
This is very informative, thanks.<p>While I haven&#x27;t investigated the additional benefits of running gpg-agent as a service as you&#x27;ve shown here, I did want to mention Keychain [0] which has been great for managing ssh-agent and gpg-agent for console use.<p>[0] <a href="https:&#x2F;&#x2F;www.funtoo.org&#x2F;Keychain" rel="nofollow">https:&#x2F;&#x2F;www.funtoo.org&#x2F;Keychain</a>