On a fresh Ubuntu 16.04 install, I would like to use gpg to cypher my database backups, but I can't have the
postgres@db:~$ gpg -s test.txt You need a passphrase to unlock the secret key for user: "Nicolas Remond <firstname.lastname@example.org>" 2048-bit RSA key, ID F5DECA47, created 2016-11-03 gpg: gpg-agent is not available in this session Enter passphrase:
Also, it seems that a gpg-agent is running as I did the following before:
postgres@db:~$ gpg-agent gpg-agent: no gpg-agent running in this session postgres@db:~$ gpg-connect-agent /bye gpg-connect-agent: no running gpg-agent - starting '/usr/bin/gpg-agent' gpg-connect-agent: waiting for the agent to come up ... (5s) gpg-connect-agent: connection to agent established postgres@db:~$ pidof gpg-agent 1762
And the gpg config has the
postgres@dbmaster0:~$ cat ~/.gnupg/gpg.conf | grep use-agent # For Ubuntu we now use-agent by default to support more automatic use-agent
What am I missing ?