Mise a jour conf gpg-agent
This commit is contained in:
parent
f1c8296465
commit
3a502bb33e
10
HowtoGPG.md
10
HowtoGPG.md
|
@ -60,20 +60,14 @@ L'agent GPG garde en mémoire la passphrase de vos clés mais fait aussi office
|
||||||
enable-ssh-support
|
enable-ssh-support
|
||||||
pinentry-program /usr/bin/pinentry-qt
|
pinentry-program /usr/bin/pinentry-qt
|
||||||
log-file $HOME/.gnupg/gpg-agent.log
|
log-file $HOME/.gnupg/gpg-agent.log
|
||||||
use-standard-socket
|
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Fichier `.bashrc` (ou `.zshrc`) :
|
Fichier `.bashrc` (ou `.zshrc`) :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
pgrep -u $USER gpg-agent > /dev/null
|
pgrep -u $USER gpg-agent > /dev/null || gpg-agent --daemon
|
||||||
if [ $? == 0 ]; then
|
|
||||||
source ~/.gnupg/gpg-agent-$(hostname).env
|
|
||||||
else
|
|
||||||
gpg-agent --daemon > ~/.gnupg/gpg-agent-$(hostname).env
|
|
||||||
eval $(<~/.gnupg/gpg-agent-$(hostname).env)
|
|
||||||
fi
|
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
|
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
|
||||||
gpg-connect-agent updatestartuptty /bye
|
gpg-connect-agent updatestartuptty /bye
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue