bk.sh: use ssh-agent
This commit is contained in:
parent
2061e0abf5
commit
674f9226d6
@ -28,6 +28,9 @@ then
|
|||||||
~/med ~/dox dogeystamp@lambda:/mnt/disk/uv/
|
~/med ~/dox dogeystamp@lambda:/mnt/disk/uv/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
eval `ssh-agent`
|
||||||
|
ssh-add ~/.ssh/keys/lambda
|
||||||
|
|
||||||
if [ $ACTION = RECV ]
|
if [ $ACTION = RECV ]
|
||||||
then
|
then
|
||||||
rsync -avzP --append-verify \
|
rsync -avzP --append-verify \
|
||||||
@ -36,3 +39,4 @@ then
|
|||||||
dogeystamp@lambda:/mnt/disk/data/navidrome/mus/ ~/med/mus
|
dogeystamp@lambda:/mnt/disk/data/navidrome/mus/ ~/med/mus
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
kill $SSH_AGENT_PID
|
||||||
|
Loading…
Reference in New Issue
Block a user