How do I make gpg-agent forget my passphrase automatically?
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
I'm using Thunderbird with enigmail and gpg. From thunderbird/enigmail, I can't make the gpg-agent forget my passphrase, enigmail tells me I'm using gpg-agent for passphrase management so enigmail can't forget my passphrase.
Is there a way to make gpg-agent forget my passphrase periodically? To be honest, I only skimmed the manpage but it looked like there was nothingin there.
gpg thunderbird gpg-agent
add a comment |Â
up vote
4
down vote
favorite
I'm using Thunderbird with enigmail and gpg. From thunderbird/enigmail, I can't make the gpg-agent forget my passphrase, enigmail tells me I'm using gpg-agent for passphrase management so enigmail can't forget my passphrase.
Is there a way to make gpg-agent forget my passphrase periodically? To be honest, I only skimmed the manpage but it looked like there was nothingin there.
gpg thunderbird gpg-agent
man gpg-agent | less -p default-cache
...
â jasonwryan
Jul 18 '14 at 7:26
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I'm using Thunderbird with enigmail and gpg. From thunderbird/enigmail, I can't make the gpg-agent forget my passphrase, enigmail tells me I'm using gpg-agent for passphrase management so enigmail can't forget my passphrase.
Is there a way to make gpg-agent forget my passphrase periodically? To be honest, I only skimmed the manpage but it looked like there was nothingin there.
gpg thunderbird gpg-agent
I'm using Thunderbird with enigmail and gpg. From thunderbird/enigmail, I can't make the gpg-agent forget my passphrase, enigmail tells me I'm using gpg-agent for passphrase management so enigmail can't forget my passphrase.
Is there a way to make gpg-agent forget my passphrase periodically? To be honest, I only skimmed the manpage but it looked like there was nothingin there.
gpg thunderbird gpg-agent
gpg thunderbird gpg-agent
asked Jul 18 '14 at 7:19
mart
3701410
3701410
man gpg-agent | less -p default-cache
...
â jasonwryan
Jul 18 '14 at 7:26
add a comment |Â
man gpg-agent | less -p default-cache
...
â jasonwryan
Jul 18 '14 at 7:26
man gpg-agent | less -p default-cache
...â jasonwryan
Jul 18 '14 at 7:26
man gpg-agent | less -p default-cache
...â jasonwryan
Jul 18 '14 at 7:26
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
5
down vote
You can use the --default-cache-ttl
option to set how long to keep an entry around:
eval $(gpg-agent --default-cache-ttl 300)
will cache for five minutes. You can also set this in your gpg-agent.conf
file:
default-cache-ttl 300
The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl
sets the upper limit before reentering the passphrase.
add a comment |Â
up vote
4
down vote
If you want to make gpg-agent
forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP
:
$ killall -s HUP gpg-agent
That'll generate a log file entry like this:
2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache
add a comment |Â
up vote
0
down vote
You can just kill it. This is the canonical way to kill gpg-agent:
gpgconf --kill gpg-agent
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
You can use the --default-cache-ttl
option to set how long to keep an entry around:
eval $(gpg-agent --default-cache-ttl 300)
will cache for five minutes. You can also set this in your gpg-agent.conf
file:
default-cache-ttl 300
The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl
sets the upper limit before reentering the passphrase.
add a comment |Â
up vote
5
down vote
You can use the --default-cache-ttl
option to set how long to keep an entry around:
eval $(gpg-agent --default-cache-ttl 300)
will cache for five minutes. You can also set this in your gpg-agent.conf
file:
default-cache-ttl 300
The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl
sets the upper limit before reentering the passphrase.
add a comment |Â
up vote
5
down vote
up vote
5
down vote
You can use the --default-cache-ttl
option to set how long to keep an entry around:
eval $(gpg-agent --default-cache-ttl 300)
will cache for five minutes. You can also set this in your gpg-agent.conf
file:
default-cache-ttl 300
The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl
sets the upper limit before reentering the passphrase.
You can use the --default-cache-ttl
option to set how long to keep an entry around:
eval $(gpg-agent --default-cache-ttl 300)
will cache for five minutes. You can also set this in your gpg-agent.conf
file:
default-cache-ttl 300
The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl
sets the upper limit before reentering the passphrase.
answered Jul 18 '14 at 7:27
Michael Homer
44k6117155
44k6117155
add a comment |Â
add a comment |Â
up vote
4
down vote
If you want to make gpg-agent
forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP
:
$ killall -s HUP gpg-agent
That'll generate a log file entry like this:
2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache
add a comment |Â
up vote
4
down vote
If you want to make gpg-agent
forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP
:
$ killall -s HUP gpg-agent
That'll generate a log file entry like this:
2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache
add a comment |Â
up vote
4
down vote
up vote
4
down vote
If you want to make gpg-agent
forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP
:
$ killall -s HUP gpg-agent
That'll generate a log file entry like this:
2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache
If you want to make gpg-agent
forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP
:
$ killall -s HUP gpg-agent
That'll generate a log file entry like this:
2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache
answered Sep 19 '14 at 21:16
amphetamachine
3,70512338
3,70512338
add a comment |Â
add a comment |Â
up vote
0
down vote
You can just kill it. This is the canonical way to kill gpg-agent:
gpgconf --kill gpg-agent
add a comment |Â
up vote
0
down vote
You can just kill it. This is the canonical way to kill gpg-agent:
gpgconf --kill gpg-agent
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You can just kill it. This is the canonical way to kill gpg-agent:
gpgconf --kill gpg-agent
You can just kill it. This is the canonical way to kill gpg-agent:
gpgconf --kill gpg-agent
answered 4 mins ago
MMGen
363
363
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f145233%2fhow-do-i-make-gpg-agent-forget-my-passphrase-automatically%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
man gpg-agent | less -p default-cache
...â jasonwryan
Jul 18 '14 at 7:26