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?
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The end fix was a combination of that and this:
chmod o+rw $(tty)
before executing su - <shared account>