From: Christian Heller Date: Thu, 23 Jan 2020 22:03:08 +0000 (+0100) Subject: Only ask for SSH key pw once. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/unset_cookie?a=commitdiff_plain;h=382bf248d48ae4701c48f99fa2d8d99b17be15b1;p=config Only ask for SSH key pw once. --- diff --git a/buster/setup_scripts/init_user_login.sh b/buster/setup_scripts/init_user_login.sh index 6abb766..08598ce 100755 --- a/buster/setup_scripts/init_user_login.sh +++ b/buster/setup_scripts/init_user_login.sh @@ -15,6 +15,10 @@ if [ $# -eq 0 ]; then fi server="$1" +# So we're only asked once … +eval $(ssh-agent) +ssh-add + # This will be used to log-in as root from plom account. echo 'Asking for root password.' ssh root@"${server}" "passwd"