aboutsummaryrefslogtreecommitdiffstats
path: root/_gnupg/gpg-agent.conf
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-20 08:47:11 +0800
committerAaron LI <aly@aaronly.me>2017-10-20 08:47:57 +0800
commitc0861a863fe192cc796d31024f633cbc9b88ba50 (patch)
treefa6dc997d144f180d63d89709e9b2f93d0b0bc6c /_gnupg/gpg-agent.conf
parentbc045b7e9f8e8fae58db971e28789ca0ac2c644b (diff)
downloaddotfiles-c0861a863fe192cc796d31024f633cbc9b88ba50.tar.bz2
gpg/agent: Set a much longer timeout limits
Diffstat (limited to '_gnupg/gpg-agent.conf')
-rw-r--r--_gnupg/gpg-agent.conf14
1 files changed, 7 insertions, 7 deletions
diff --git a/_gnupg/gpg-agent.conf b/_gnupg/gpg-agent.conf
index bdac978..5747023 100644
--- a/_gnupg/gpg-agent.conf
+++ b/_gnupg/gpg-agent.conf
@@ -3,9 +3,6 @@
# GnuPG Agent configuration file
# See `gpg-agent(1)'
#
-# The agent is automatically started on demand, thus there is no reason
-# to start it manually.
-#
# After changing the configurations, reload the agent using:
# $ gpg-connect-agent reloadagent /bye
#
@@ -17,7 +14,6 @@
#
# Aaron LI
# Created: 2014-06-12
-# Updated: 2017-02-27
#
# Enable the OpenSSH Agent protocol
@@ -25,9 +21,13 @@ enable-ssh-support
# Set the time a cache entry is valid (default: 600 seconds)
# Each time a cache entry is accessed, the entry's timer is reset
-default-cache-ttl 1200
-
+# (see this to be 1 week, i.e., 7 days)
+default-cache-ttl 604800
# Set the maximum time a cache entry is valid (default: 7200 seconds)
-max-cache-ttl 7200
+max-cache-ttl 604800
+
+# Set the timeout limits for the cached SSH keys
+default-cache-ttl-ssh 604800
+max-cache-ttl-ssh 604800
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=gpg: #