I'm unable to set up a standard architecture: 2 computers sharing some files, talking via a jabber account and transferring files via e.g. box.com. Steps:
Computer 1: a) Install git-annex, open up the assistant, create a new repository, add a jabber account b) Add a box.com account using WEBDAV_USERNAME=[username] WEBDAV_PASSWORD=[password] git annex initremote box.com type=webdav url=https://dav.box.com/dav/git-annex chunksize=75mb encryption=pubkey keyid=[key id]. All seemed fine.
Computer 2: a) same b) at this point I saw the option of adding box.com as a cloud storage. I clicked enable and got the message
user error (gpg ["--quiet","--trust-model","always","--decrypt"] exited 2)
In the meantime, on Computer 1 I saw the same option. I clicked enable and got the same message.
It all works fine if I use shared encryption.
Which is why the assistant uses shared encryption by default..
You have set up a webdav repository using a gpg key that is on computer 1. To be able to access this repository on computer 2 you'll need to either copy the gpg private key from computer 1, or give computer 2 its own key and, on computer 1, add that key as one that can access the webdav repository.
Thank you for your reply. I copied over the public key from computer 2 to computer 1 and tried to add it using git annex enableremote box.com keyid+=[keyid]. I am then asked for the passphrase for my private key on computer 1. Afterwards I am asked for the passphrase for the private key on computer 2... why? Obviously I don't have it so I get
gpg: can't query passphrase in batch mode gpg: decryption failed: secret key not available
git-annex: user error (gpg ["--quiet","--trust-model","always","--batch","--decrypt"] exited 2)
Why would I need computer 2's secret key? Or I might just get it completely wrong. Also, can the passphrase be remembered somewhere, so that I can use the assistant? (otherwise I think it won't work, because I would have to type the passphrase at every synchronisation attempt).
Sorry for my confusion, thanks for your support.
I dont think it's possible for gpg to prompt for a passphrase when all it has is a public key, so I think you copied the private key too.
gpg agents can cache your passphrase.