From 674f9226d68ec36ea9b0b09b17deaa475398c135 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 18 Jul 2022 20:13:08 -0400 Subject: [PATCH] bk.sh: use ssh-agent --- src/.local/bin/bk.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/.local/bin/bk.sh b/src/.local/bin/bk.sh index 0b68f96..f0ca154 100755 --- a/src/.local/bin/bk.sh +++ b/src/.local/bin/bk.sh @@ -28,6 +28,9 @@ then ~/med ~/dox dogeystamp@lambda:/mnt/disk/uv/ fi +eval `ssh-agent` +ssh-add ~/.ssh/keys/lambda + if [ $ACTION = RECV ] then rsync -avzP --append-verify \ @@ -36,3 +39,4 @@ then dogeystamp@lambda:/mnt/disk/data/navidrome/mus/ ~/med/mus fi +kill $SSH_AGENT_PID