From c37f36b8e4634ac745c0fb413c92f3ef5f6ce614 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Tue, 10 Sep 2019 14:53:30 +0100 Subject: [PATCH] Add my SSH public key (overriding feature coming soon) --- scripts/install_client.sh | 1 + scripts/system/root/.ssh/authorized_keys | 1 + 2 files changed, 2 insertions(+) create mode 100644 scripts/system/root/.ssh/authorized_keys diff --git a/scripts/install_client.sh b/scripts/install_client.sh index 1c6c2647..a1abaff1 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -70,6 +70,7 @@ echo overlayroot=\"device:dev=/dev/disk/by-partlabel/01-tmp-system,recurse=0\" > find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; find . -type f -exec /bin/sh -c "file {} | grep -q 'shell script' && chmod +x {}" \; +find . -type f -exec /bin/sh -c "file {} | grep -q 'public key' && chmod 400 {}" \; cp --preserve=mode -RT . / cd $SCRIPT_DIR diff --git a/scripts/system/root/.ssh/authorized_keys b/scripts/system/root/.ssh/authorized_keys new file mode 100644 index 00000000..5d557d5d --- /dev/null +++ b/scripts/system/root/.ssh/authorized_keys @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAj18I9dL59HmBhZulE8QP/JoBtyUVm0VKnOM9L61QtU