From d217a21f35b19e39a034d7073fe4fbdf841be725 Mon Sep 17 00:00:00 2001 From: Viktor Ribchev Date: Thu, 9 Nov 2023 14:26:20 +0200 Subject: [PATCH] Explicitly remove authorized_keys --- files/install_graphdb.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/install_graphdb.sh b/files/install_graphdb.sh index 1692aaa..f994b60 100644 --- a/files/install_graphdb.sh +++ b/files/install_graphdb.sh @@ -47,3 +47,6 @@ mv /tmp/graphdb.service /lib/systemd/system/graphdb.service systemctl daemon-reload systemctl enable graphdb.service systemctl start graphdb.service + +# Shred authorized_keys +shred -u /root/.ssh/authorized_keys /home/packer/.ssh/authorized_keys || true