From 649331619462acafc7aecbd9340a9f96f99656b4 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 14 Dec 2019 13:15:55 -0500 Subject: [PATCH] Set authorized_keys to 0600 permissions --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 548d54b..fe9a675 100755 --- a/install.sh +++ b/install.sh @@ -299,6 +299,7 @@ chroot ${target} useradd -u 200 -d /var/home/deploy -m -s /bin/bash -g operator chroot ${target} mkdir -p /var/home/deploy/.ssh if [[ -n ${target_keys_url} ]]; then wget -O ${target}/var/home/deploy/.ssh/authorized_keys ${target_keys_url} +chmod 0600 /var/home/deploy/.ssh/authorized_keys else echo "${target_password}" | chroot ${target} passwd --stdin deploy >&2 fi