From 382bf248d48ae4701c48f99fa2d8d99b17be15b1 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 23 Jan 2020 23:03:08 +0100 Subject: [PATCH] Only ask for SSH key pw once. --- buster/setup_scripts/init_user_login.sh | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.30.2