From 3069532db6ad0597f9505db65ef8657d40f5b900 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 22 Feb 2022 21:58:14 +0100 Subject: [PATCH] Remember ssh keys for 24h --- shell/ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/ssh b/shell/ssh index d65387f..c89fe0a 100755 --- a/shell/ssh +++ b/shell/ssh @@ -1,7 +1,7 @@ # start ssh agent, if no agent set if [[ -n "${XDG_RUNTIME_DIR}" && -z "${SSH_AUTH_SOCK}" ]]; then if ! pgrep -u "$USER" ssh-agent > /dev/null; then - ssh-agent -t 1h > "${XDG_RUNTIME_DIR}/ssh-agent.env" + ssh-agent -t 24h > "${XDG_RUNTIME_DIR}/ssh-agent.env" fi if [[ ! -S "${SSH_AUTH_SOCK}" ]] && [[ -f "${XDG_RUNTIME_DIR}/ssh-agent.env" ]]; then source "${XDG_RUNTIME_DIR}/ssh-agent.env" > /dev/null