Here’s how to configure gpg-agent for in memory svn password caching.
Install gpg agent:
$ sudo apt-get install gnupg-agent
Make sure pinentry is present. Usually pinentry-curses is present, to avoid the curses version, install pinentry-tty and configure it to be used for gpg in ~/.gnupg/gpg-agent.conf:
$ sudo apt-get install pinentry-tty
$ echo "pinentry-program /usr/bin/pinentry-tty" >> ~/.gnupg/gpg-agent.conf
$ gpg-connect-agent reloadagent /bye
~/.bash_profile
...
GPG_TTY=$(tty)
export GPG_TTY
eval $(gpg-agent --daemon)
Configure subversion to use gpg as password storage:
~/.subversion/config
[auth]
password-stores = gpg-agent
~/.subversion/servers
[global]
store-passwords = yes
store-plaintext-passwords = no
Sources:
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Last update on 2025-07-03.
Built by dhiller
using
Atom (editor),
Jekyll (site builder),
OneDark vivid (syntax highlighting theme),
Webjeda (related posts),
Disqus (discussions),
Github Pages (hosting),
Cloudflare (DNS).