From c7e0b0e3aa22e0f9ab29a6c0d0a322840e726dda Mon Sep 17 00:00:00 2001 From: Zoltan Haindrich Date: Thu, 5 Dec 2019 09:11:56 +0100 Subject: [PATCH] make setup_passwordless really work --- src/main/scripts/setup_passwordless_ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scripts/setup_passwordless_ssh b/src/main/scripts/setup_passwordless_ssh index b2c7b88..664e475 100755 --- a/src/main/scripts/setup_passwordless_ssh +++ b/src/main/scripts/setup_passwordless_ssh @@ -34,7 +34,7 @@ function pwd_auth() { echo "trying pwd: $1" if sshpass -p "$1" ssh "$HOST" echo ok;then echo "install" - sshpass -p "$1" ssh "$HOST" "grep -qxF '$MY_KEY' foo.bar || echo '$MY_KEY' >> foo.bar" + sshpass -p "$1" ssh "$HOST" "mkdir .ssh;grep -qxF '$MY_KEY' .ssh/authorized_keys || echo '$MY_KEY' >> .ssh/authorized_keys" banner "ok" exit 0