From 635bf647cf1479353c9e1b8423055cdb324a9c27 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 19 Dec 2018 23:01:27 +0100 Subject: [PATCH] Ensure we don't get asked for SSH passphrase repeatedly in borg script. --- all_new_2018/borg.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/all_new_2018/borg.sh b/all_new_2018/borg.sh index 522285a..8cf0c44 100755 --- a/all_new_2018/borg.sh +++ b/all_new_2018/borg.sh @@ -14,6 +14,8 @@ usage() { } read_pw() { + eval $(ssh-agent) + ssh-add stty -echo printf "Passphrase: " read password -- 2.30.2