I am using the Subversion client (version 1.9.5 r1770682, installed from the default package repository) on a Debian Stretch machine, to which I only have SSH access. I am connecting to a Subversion repository via HTTPS and would like to avoid having to re-type my password every time I perform an svn up
or svn ci
command. I would also like to avoid having to store the password on disk as plaintext.
The SVN Book suggests that I should be able to use GPG-Agent as a means of caching my password. Although svn --version
reports that the GPG-Agent authentication credential cache should be available, I am having some trouble getting it to work.
With regard to GPG, I have created a GPG key pair, have added export GPG_TTY=$(tty)
to my .profile
file, and have verified that GPG works by encrypting and decrypting a piece of text.
With regard to Subversion, in my .subversion/config
file, I have set the following:
$ grep '^[^#]' < .subversion/config
[auth]
password-stores = gpg-agent
[helpers]
[tunnels]
[miscellany]
[auto-props]
[working-copy]
In my .subversion/servers
file, I have set the following:
$ grep '^[^#]' < .subversion/servers
[groups]
[global]
store-passwords = yes
store-plaintext-passwords = no
When I perform an svn
command, however, no passwords are cached. Does anyone have any suggestions as to what I may be doing wrong? Has anyone used GPG-Agent successfully for caching HTTPS passwords? (Perhaps this credential cache is only intended for SVN+SSH connections?)
Any help would be greatly appreciated.