zprofile: set ssh-agent's secret lifetime to 4h
This commit is contained in:
parent
a34e3150e4
commit
8428f754d4
@ -28,7 +28,7 @@ export kee="surtur"
|
|||||||
export SSH_KEY_PATH="$HOME/.ssh/$kee"
|
export SSH_KEY_PATH="$HOME/.ssh/$kee"
|
||||||
|
|
||||||
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
|
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
|
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user