From 0e0a69849a74873562ec0e803f759f9e12a268c1 Mon Sep 17 00:00:00 2001 From: Jan Trienes Date: Mon, 23 Jan 2017 11:48:49 +0100 Subject: [PATCH] set correct permissions for private key --- bin/compile | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/compile b/bin/compile index 466a87c..d730ac1 100644 --- a/bin/compile +++ b/bin/compile @@ -20,6 +20,7 @@ if [ "$ssh_key" != "" ]; then mkdir "$1/.ssh" ln -s "$1/.ssh" "$HOME/.ssh" echo "$ssh_key" | base64 --decode > "$HOME/.ssh/id_rsa" + chmod 0600 "$HOME/.ssh/id_rsa" IFS=',' read -ra HOST <<< "$ssh_hosts" for i in "${HOST[@]}"; do