From 2227d826282c56714b66a3d7865ec96612e358dd Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 8 May 2019 20:37:29 +0200
Subject: [PATCH] Some more fixes.

---
 all_new_2018/borg.sh                     | 2 ++
 buster/setup_scripts/setup_home_eeepc.sh | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/all_new_2018/borg.sh b/all_new_2018/borg.sh
index c518c8b..18321b1 100755
--- a/all_new_2018/borg.sh
+++ b/all_new_2018/borg.sh
@@ -19,7 +19,9 @@ read_pw() {
     if [ "${#SSH_AGENT_PID}" -eq 0 ]; then
         eval $(ssh-agent)
         echo "ssh-add"
+        stty -echo
         ssh-add
+        stty echo
     fi
     if [ "${#BORG_PASSPHRASE}" -eq 0 ]; then
         stty -echo
diff --git a/buster/setup_scripts/setup_home_eeepc.sh b/buster/setup_scripts/setup_home_eeepc.sh
index 7678bf3..4422211 100755
--- a/buster/setup_scripts/setup_home_eeepc.sh
+++ b/buster/setup_scripts/setup_home_eeepc.sh
@@ -51,7 +51,8 @@ cat "${borgrepos_file}" | while read line; do
     if [ "${first_char}" = "#" ]; then
         continue
     fi
-    ssh-keyscan "${line}" >> "${ssh_dir}"/known_hosts
+    server=$(echo "${line}" | sed 's/.*@//')
+    ssh-keyscan "${server}" >> "${ssh_dir}"/known_hosts
 done
 BORG_PASSPHRASE="${SECRETS_PASS}" "${path_borgscript}" orgpull
 
-- 
2.30.2