manpagez: man pages & more
info gnupg
Home | html | info | man

File: gnupg.info,  Node: Agent Examples,  Next: Agent Protocol,  Prev: Agent Signals,  Up: Invoking GPG-AGENT

2.5 Examples
============

It is important to set the environment variable 'GPG_TTY' in your login
shell, for example in the '~/.bashrc' init script:

       export GPG_TTY=$(tty)

   If you enabled the Ssh Agent Support, you also need to tell ssh about
it by adding this to your init script:

     unset SSH_AGENT_PID
     if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
       export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
     fi

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.