How to get more gpg-agent info?

MikiBelavista

I followed encrypted netrc file with gpg tutorial. I edited my

~/.profile

like this

if test -f $HOME/.gpg-agent-info && \
    kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then
    GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info | cut -c 16-`
else
    # No, gpg-agent not available; start gpg-agent
    eval `gpg-agent --daemon --no-grab --write-env-file $HOME/.gpg-agent-info`
fi
export GPG_TTY=`tty`
export GPG_AGENT_INFO

This is ls for ./gnupg

~/.gnupg$ ls
openpgp-revocs.d  private-keys-v1.d  pubring.kbx  pubring.kbx~  random_seed  trustdb.gpg

It does not work,when I restart my Ubuntu error pops up that I already have one gpg-agent running. How to check this and fix this?

eval `gpg-agent --daemon --no-grab $HOME/.gpg-agent-info`
gpg-agent: a gpg-agent is already running - not starting a new one
satwell

That tutorial is obsolete, and all you should add to your ~/.profile now is GPG_TTY=$(tty).

On a modern Ubuntu system, the GPG agent sockets are in /run/user/$UID/gnupg and systemd will start gpg-agent for you automatically when gpg runs and tries to access the agent socket.

To confirm this, gpgconf --list-dirs agent-socket will show you the path that it's using for the socket, and systemctl --user status gpg-agent should show the status of the already-running agent.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I get GPG Agent to cache my password?

From Dev

How can I get GPG Agent to cache my password?

From Dev

How to get passphrase cache duration left in gpg-agent?

From Dev

How to make gpg find gpg-agent

From Dev

How does GPG agent work?

From Dev

How to get more verbose error info in Angular?

From Dev

Python - How to get more info about SyntaxError?

From Dev

How to get more info about socket file?

From Dev

How to get more verbose error info in Angular?

From Dev

How to get gpg-agent to ask for passphrase when generating keys with GPGME?

From Dev

How can I restart gpg-agent?

From Dev

How to get more info on julia array bounds error?

From Dev

How to get more info out of the uninformative Windows 8 BSOD?

From Dev

How can I get more info on Facebook login

From Dev

How to get more info regarding Legacy System Extensions in MacOS Catalina?

From Dev

How to get more error info from a selenium geckodriver failure?

From Dev

How can I forward a gpg key via ssh-agent?

From Dev

How to let gpg-agent confirm each key usage

From Dev

How to properly start gpg-agent on Ubuntu 16.04

From Dev

How to set up SSH key forwarding with gpg-agent?

From Dev

Is there a gpg-agent for cygwin?

From Dev

How can I generate gpg keys in scripts without leaving gpg-agent running?

From Dev

How do I use gpg-agent as with ssh-agent+ssh-add?

From Dev

How to get info of an FTPFile

From Dev

How to get info pages

From Dev

How to get more info within only one geosearch call via Wikipedia API?

From Dev

MVC Site getting 500 error only on server, how do I get more info on error?

From Dev

How can I get more info on high-CPU rundll32.exe process?

From Dev

gpg-agent instead of ssh-agent

Related Related

HotTag

Archive