Link to home
Start Free TrialLog in
Avatar of zequestioner
zequestioner

asked on

GPG Key pair error

Running on a linux vm. Gpg 2.0.14


Trying to create a GPG key pair, running into trouble with connecting to the gpg agent.

Error:
can't connect to `/home/mezkil/.gnupg/S.gpg-agent': No such file or directory
gpg-agent[6640]: command get_passphrase failed: Operation cancelled

I added these config lines, still no difference.

.bashrc:
GPG_TTY=$(tty)
     export GPG_TTY

.bash_profile:
/usr/bin/gpg-agent --daemon --use-standard-socket

Suggestions?
ASKER CERTIFIED SOLUTION
Avatar of btan
btan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zequestioner
zequestioner

ASKER

Thanks for the advice, I'll award questions as that was very helpful.

The end fix was a combination of that and this:

chmod o+rw $(tty)
before executing su - <shared account>