hashipi

Raspberry Pi Test Cluster for HashiCorp Vault, Nomad and Consul
git clone https://git.in0rdr.ch/hashipi.git
Log | Files | Refs | Pull requests |Archive | README

commit cedea922f946119f4f55d1a774140660f4525f67
parent 2b65966381e81ee12c1539d61a63e596e30141db
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sat,  4 Oct 2025 21:29:24 +0200

fix(bootstrap): multi-line authorized keys

Diffstat:
Mbootstrap.sh | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bootstrap.sh b/bootstrap.sh @@ -63,9 +63,7 @@ sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd # Setup ssh keys mkdir "/home/${USERNAME}/.ssh" touch "/home/${USERNAME}/.ssh/authorized_keys" -cat << EOF > "/home/${USERNAME}/.ssh/authorized_keys" -$AUTHORIZED_KEYS -EOF +echo -e "${AUTHORIZED_KEYS}" > "/home/${USERNAME}/.ssh/authorized_keys" chown -R $USERNAME "/home/${USERNAME}/.ssh" chmod 700 "/home/${USERNAME}/.ssh"