TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using gpg-agent Effectively

28 pointsby eklitzkeabout 7 years ago

2 comments

phyzomeabout 7 years ago
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
jfkwabout 7 years ago
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>