From 8428f754d401b8b841859b00bd4363855a15c377 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 17 Oct 2022 21:08:17 +0200 Subject: [PATCH] zprofile: set ssh-agent's secret lifetime to 4h --- .zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zprofile b/.zprofile index b4b91a8..40902fb 100644 --- a/.zprofile +++ b/.zprofile @@ -28,7 +28,7 @@ export kee="surtur" export SSH_KEY_PATH="$HOME/.ssh/$kee" if [ ! -S ~/.ssh/ssh_auth_sock ]; then - eval `ssh-agent` > /dev/null + eval `ssh-agent -t4h` > /dev/null ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock fi