home · contact · privacy
Ensure we don't get asked for SSH passphrase repeatedly in borg script.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 19 Dec 2018 22:01:27 +0000 (23:01 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 19 Dec 2018 22:01:27 +0000 (23:01 +0100)
all_new_2018/borg.sh

index 522285a481c35556aeac0c37377bcbe1ba0c00e4..8cf0c441d42f75b8ccab931716ffc651e0358fb9 100755 (executable)
@@ -14,6 +14,8 @@ usage() {
 }
 
 read_pw() {
+    eval $(ssh-agent)
+    ssh-add
     stty -echo
     printf "Passphrase: "
     read password