gpg-agent

Juan Orti Alcaine juan.orti at miceliux.com
Fri Aug 23 07:21:32 UTC 2013


El 2013-08-23 07:19, Juan Orti Alcaine escribió:
> El 2013-08-22 20:18, Martin S escribió:
>> As I understand it the file gpg-agent-startup.sh should be placed in
>> /etc/kde/env and made executable for the gpg-agent to start att boot 
>> time?
>> Agent is also enabled in the ~/.gnupg/gpg.conf
>> 
>> Running the file manually it starts the agent, but after having 
>> booted, the
>> gpg-agent isn't started, so it seems the directory/file isn't read at 
>> boot
>> time?
>> 
>> Where should that file be place to be run at startup?
>> 
>> /Martin S
> 
> 
> My setup with ssh-agent and gpg-agent:
> 

I forgot ~/.bashrc :

# GPG Agent
GPG_TTY="$(tty)"
export GPG_TTY
if [ -n "$(pgrep -U $LOGNAME gpg-agent)" -a -f 
${HOME}/.gnupg/gpg-agent-info ]; then
    . ${HOME}/.gnupg/gpg-agent-info
    export GPG_AGENT_INFO
else
    unset GPG_AGENT_INFO
    if [ -f ${HOME}/.gnupg/gpg-agent-info ]; then
       rm -f ${HOME}/.gnupg/gpg-agent-info
    fi
fi

# SSH Agent
if [ -f "${HOME}/.ssh/environment" ]; then
     . "${HOME}/.ssh/environment" > /dev/null
fi



More information about the users mailing list